如何configuration重叠的NFS权限?

我在我的NFS服务器上运行Solaris 10。 我正在努力如何设置从一个子网共享的只读访问,但允许从该子网内的系统的读写访问。

在服务器上:

root@server># share -F nfs -o log,root=192.168.10.10,rw=192.168.10.10,[email protected]/24 /export/plaground 

读写客户端能够挂载共享,但无法以root用户或具有共享权限的标准用户进行写入。

 root@client># mount server:/export/playground /mnt root@client># mount <snip> server:/export/playground on /mnt type nfs (rw,addr=192.168.168.5) root@client># ls -axl /mnt total 90 drwxr-xr-x+ 25 root root 25 Nov 2 11:45 . drwxr-xr-x 22 root root 4096 Nov 2 11:28 .. drwxrwxr-x 2 root users 2 Nov 2 11:45 test root@client># touch /mnt/file.test touch: cannot touch `/mnt/file.test': Read-only file system root@client># exit user@client>$ touch /mnt/test/file.test touch: cannot touch `/mnt/test/file.test': Read-only file system 

我试图调整选项的顺序,但没有成功。 在读写选项之前放置只读选项不会改变安装的状态。

有什么想法吗?

回答…

 root@server># share -F nfs -o log,[email protected]/32,[email protected]/32,[email protected]/24 /export/playground 

对于单个IP,您必须执行@ IP / 32,以获得正确的cidr表示法。