[sclug] nfsv4 server/client - how to propagate UID/GIDs?

John Stumbles sclug at yaph.org.uk
Tue Jun 9 21:25:48 UTC 2009


Trying to connect one of my PCs to my new fileserver using NFSv4 (coz 
it's newer so it must be better :-)). I've exported and mounted the 
filesystem happily enough, except that the permissions on the mounted 
filesystem are all nobody:nogroup rather than the correct users:groups 
that are on the filesystem on the server. Presumably one should actually 
be able to propagate UID/GIDs across export/mounts? (Debian Lenny on the 
Server, Etch on the client).

server: /etc/exports
/srv/nfs4        \
192.168.1.0/24(ro,sync,insecure,root_squash,no_subtree_check,fsid=0)
/srv/nfs4/home   \
192.168.1.0/24(rw,nohide,sync,insecure,root_squash,no_subtree_check)

server# exportfs -rv
exporting 192.168.1.0/24:/srv/nfs4/home
exporting 192.168.1.0/24:/srv/nfs4

server# lsl /srv/nfs4/home/
total 60
drwxr-xr-x  10 root    root     4096 2008-07-04 14:41 .
drwxr-xr-x   3 root    root     4096 2009-06-09 20:53 ..
drwxr-xr-x  39    1004    1004  4096 2009-06-08 17:47 arion
drwxr-xr-x  22 root    root     4096 2007-11-19 11:46 bart
drwxr-xr-x   2 root    root     4096 2006-11-12 13:45 etc
drwxr-xr-x  44    1002    1002  4096 2009-06-09 08:31 george
drwxr-xr-x  58    1003    1003  4096 2009-05-24 08:58 jamie
drwxr-xr-x 107    1001    1001 12288 2009-06-08 23:09 john
drwxr-xr-x  10 kobbold kobbold  4096 2009-05-29 09:07 kobbold
drwx------   2 root    root    16384 2007-11-13 00:10 lost+found

client: /etc/fstab
...
server:/home /home.kryten nfs4 rw 0 0

client# mount
...
server:/home on /home.server type nfs4 (rw,addr=192.168.1.11)

# lsl /home.server/
total 60
drwxr-xr-x  10 nobody nogroup  4096 2008-07-04 14:41 .
drwxr-xr-x  25 root   root     4096 2009-06-09 21:24 ..
drwxr-xr-x  39 nobody nogroup  4096 2009-06-08 17:47 arion
drwxr-xr-x  22 nobody nogroup  4096 2007-11-19 11:46 bart
drwxr-xr-x   2 nobody nogroup  4096 2006-11-12 13:45 etc
drwxr-xr-x  44 nobody nogroup  4096 2009-06-09 08:31 george
drwxr-xr-x  58 nobody nogroup  4096 2009-05-24 08:58 jamie
drwxr-xr-x 107 nobody nogroup 12288 2009-06-08 23:09 john
drwxr-xr-x  10 nobody nogroup  4096 2009-05-29 09:07 kobbold
drwx------   2 nobody nogroup 16384 2007-11-13 00:10 lost+found




-- 
John Stumbles                                       http://yaph.org.uk
:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:



More information about the Sclug mailing list