您的位置:首页 > 其它

nfs限定挂载过来以后的用户为本地用户

2016-04-15 13:39 603 查看
服务端:192.168.41.129
chmod /home/common/ 777
[root@localhost ~]# cat /etc/exports
/home/common 192.168.41.0/24(rw,sync,no_root_squash,anonuid=1004,anongid=1004)
no_root_squash改为all_squash时,挂载后的用户就全是1004对应的shaw,意味着全部用户限定为1004
no_root_squash的意思是限定root之外的所有用户为shaw
客户端:192.168.41.132
[root@localhost ~]# cat /etc/passwd|grep 1004
shaw:x:1004:1004::/home/shaw:/bin/bash
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: