Subject: Re: [vserver] vdir @ NFS? Permission errors.
From:Christian Schrötter <vserver@lists.kb19.at>
Date: Sat, 15 Mar 2014 21:56:38 +0100

> What NFS version and how was it mounted?
exports: /remotepath 
y.y.y.y/32(rw,sync,no_root_squash,no_subtree_check)
fstab: x.x.x.x:/remotepath /vservers.nfs nfs rw,soft,bg,intr,vers=3 0 0

Mounted with "mount /vservers.nfs" on the host.

> Can you create a world writeable directory, and from
> within the guest, create a file inside this directory
> and list ownership for that on the server and from
> inside the guest?
Sure, here we go:
> # mkdir /vservers.nfs/example/example
> # chmod 0777 /vservers.nfs/example/example
> # vserver example exec touch /example/root-test
> # vserver example exec su -s /bin/sh -c "touch 
> /example/clamsmtp-test" clamsmtp

VS Host:
> # ls -lisahn /vservers.nfs/example/example/
> 27936703 4,0K drwxrwxrwx  2   0   0 4,0K Mär 15 21:47 .
> 27931540 4,0K drwxr-xr-x 22   0   0 4,0K Mär 15 21:46 ..
> 27936705    0 -rw-r--r--  1 102 104    0 Mär 15 21:47 clamsmtp-test
> 27936704    0 -rw-r--r--  1   0   0    0 Mär 15 21:47 root-test

VS Guest:
> # vserver example exec ls -lisahn /example/
> 27936703 4,0K drwxrwxrwx  2   0   0 4,0K Mär 15 21:47 .
> 27931540 4,0K drwxr-xr-x 22   0   0 4,0K Mär 15 21:46 ..
> 27936705    0 -rw-r--r--  1 102 104    0 Mär 15 21:47 clamsmtp-test
> 27936704    0 -rw-r--r--  1   0   0    0 Mär 15 21:47 root-test

NFS Server:
> # ls -lisahn /remotepath/example/example/
> 27936703 4,0K drwxrwxrwx  2   0   0 4,0K Mär 15 21:47 .
> 27931540 4,0K drwxr-xr-x 22   0   0 4,0K Mär 15 21:46 ..
> 27936705    0 -rw-r--r--  1 102 104    0 Mär 15 21:47 clamsmtp-test
> 27936704    0 -rw-r--r--  1   0   0    0 Mär 15 21:47 root-test

-- 
With kind regards,
Christian Schrötter