nfs4 all_squash: does it work at all?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello list!

I'm struggling with NFS4 and all_squash but I cannot get it working.

We have a file server exporting shares using nfs4 (and samba, but it's
not important)

We don't use kerberos. We use NFS4 only because we found it was more
stable and faster with KDE.

We have some shared directories that need to be owned by
nobody:somegroup (for quota purposes)

server:

$ cat /etc/exports

/NFSROOT			*(rw,sync,no_subtree_check,fsid=root)
/NFSROOT/home			*(rw,sync,no_subtree_check)
/NFSROOT/shares/Sistemas	*(rw,sync,no_subtree_check,all_squash,anongid=1002)

$ ls -l /NFSROOT/shares/
drwxrws--- 2 nobody sistemas    4096 2010-10-12 22:44 Sistemas


client:
$ mount | grep nfsserver
nfsserver:/shares/Sistemas on /compartidos/sistemas type nfs4
(rw,clientaddr=10.11.101.124,addr=10.11.101.126)

$ touch /compartidos/sistemas/pepepe
$ ls -ln /compartidos/sistemas/
total 0
-rw-r--r-- 1 1000 1002 0 2010-10-12 22:45 pepepe


If I use nfs3:

$ sudo umount /compartidos/sistemas
$ sudo mount -t nfs nfsserver:/NFSROOT/shares/Sistemas sistemas/
$ touch /compartidos/sistemas/qwerwer
$ ls -ln /compartidos/sistemas/
total 0
-rw-r--r-- 1  1000 1002 0 2010-10-12 22:45 pepepe
-rw-r--r-- 1 65534 1002 0 2010-10-12 22:48 qwerwer


Why uid:1000 with nfs4 and uid:65534 with nfs3? What am I missing?
Note that I would like nfs4 behave like nfs3.

Many thanks in advance,
Norberto
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux