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
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
相关文章推荐
- 标准OAM注册扩展OAM注册以及扩展OAM报文分析
- MogileFS
- leetCode(62)-Reverse Integer
- leetCode(62)-Reverse Integer
- iOS常用的数学函数
- java 基础加强(myeclipse,debug,junit,JDK5新特性,反射)
- LeetCode 91. Decode Ways
- 读书笔记-神经网络与深度学习(一)-使用神经网络识别手写数字
- 42.leetcode题目:169. Majority Element(还有一种方法待做)
- Spring中的设计模式(转载)
- 我所亲历的北京抢房潮
- Android之UI--打造万能自定义Dialog
- 抚摸被我冷落了一个月的博客の博弈小结
- 非监督版bp网络
- ndk_stack打印native层崩溃堆栈
- java代码优化
- Swift与Objective-C API的交互
- 【iOS学习笔记 16-4-15】正则表达式基础
- Horizon View虚拟桌面部署
- ios / % 四舍五入 向上取整(ceil()) 向下取整(floor())