Re: nfs4 all_squash: does it work at all?

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

 



2010/10/12 zoolook <nbensa@xxxxxxxxx>:
> Why uid:1000 with nfs4 and uid:65534 with nfs3? What am I missing?
> Note that I would like nfs4 behave like nfs3.

I've been struggling with this for two weeks. I've read lots of docs,
posts, forums, faqs... and I hate when I find the answer just after
clicking send to a mailing list.

For the record, what I missed was the fact that I need to do bind
mount for nfs4 to work properly.

Server:
$ ls -lnd /shares/sistemas/
drwxrws--- 2 65534 1002 4096 2010-10-12 23:25 /shares/sistemas/

$ mount | grep NFSROOT
/shares/sistemas on /NFSROOT/shares/Sistemas type none (rw,bind)

$ cat /etc/exports
/NFSROOT			*(ro,sync,no_subtree_check,fsid=root)
/NFSROOT/shares/Sistemas	*(rw,sync,no_subtree_check,all_squash,anongid=1002)

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/q

$ ls -ln /compartidos/sistemas/
total 0
-rw-r--r-- 1 65534 1002 0 2010-10-13 00:37 q



Thanks to all who have read. And I'm sorry for the noise.

Best regards,
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