码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2016-04-15 14:10:57      阅读:997      评论:0      收藏:0      [点我收藏+]

标签:nfs no_root_squash all_squash

服务端: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


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

标签:nfs no_root_squash all_squash

原文地址:http://shawyang.blog.51cto.com/2894939/1764130

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!