A-A+

NFS客户端文件属主变为数字4294967294

2016年04月28日 笔记 评论 2 条 阅读 5,475 次
NFS Client 权限拥有者显示nobody或4294967294 解决办 法 结论:在CentOS 6 操作系统部署NFS服务的时候服务端和客 户端都需要开启”rpcbind”和”rpcidmap”服务。 服务端:Rpcbind,Rpcidmap,Nfs 客户端:Rpcbindm,Rpcidmap 1、服务端配置 1)NFS 配置 [root@NFS /data/nfs/share]# grep share /etc/exports ##this share is cread by yapeng for new.eefocus.com /data/nfs/share 192.168.1.0/24(rw,sync,all_squash) 2)挂载目录权限 [root@NFS /data/nfs]# ls -ld share/ drwxrwxrwx. 7 www www 4096 Apr 11 12:48 share/ #这里给了777 的权限,是很不安全的做法,因生产 环境是以前配置的,也没有办法改动 3)www 用户ID [root@NFS /data/nfs]# id www uid=1207(www) gid=1207(www) groups=1207(www) 2、客户端 1)客户端挂载显示 [root@58-web /srv/share]# ll total 20 drwxrwxrwx. 7 4294967294 4294967294 4096 Apr 11 01:30 asset drwxr-xr-x. 2 4294967294 4294967294 4096 Apr 12 20:11 release drwxrwxrwx. 2 4294967294 4294967294 4096 Apr 10 22:32 static drwxrwxrwx. 4 4294967294 4294967294 4096 Apr 10 22:31 upload drwxrwxrwx. 4 4294967294 4294967294 4096 Apr 10 22:31 var 2)www 用户id [root@58-web /srv/share]# id www uid=1207(www) gid=1207(www) groups=1207(www) 解决方法: 重点:客户端和服务端都要启动一个”rpcidmapd”的服务 服务端: [root@NFS ~]# /etc/init.d/rpcidmapd start Starting RPC idmapd: [ OK ] 客户端: [root@58-web /srv/share]# /etc/init.d/rpcidmapd start Starting RPC idmapd: [ OK ] 4、查看客户端 提示:如果客户端显示还有问题,等待一会儿,就会显示正常。如果 显示部分正确,需要reload服务端和客户端的’rpcidmapd’ 服务
标签:

2 条留言  访客:2 条  博主:0 条

  1. ゼニス オーバーホール 正規

    Aѕking questions are truly nice thіng if you are noot understanding something totally, except this
    artice gіvеs nice underѕtanding yet.

    Also visit my web site ゼニス オーバーホール 正規

  2. パテックフィリップ 普段使い

    SomeboԀy essentiallу lend ɑ hand to maҝe seriously articles I might state.
    This iѕ the very first tie Ifrequеnted your website page and to
    this point? Ӏ surprised witһ the anayѕis you made tօ create thiss particular
    submit incredible. Magnificent activity!

    My blog - パテックフィリップ 普段使い

给我留言