mount.nfs:access denied by server while mounting问题解决

来源:互联网 发布:nginx main函数 编辑:程序博客网 时间:2024/05/06 00:27

出现了如下的提示:mount.nfs: access denied by server while mounting localhost:/root/nfs_root



花了我3天的时间,检测。 发现在公司的电脑配置没有问题。就家里的台式机会出问题。

网上search找不到任何原因。 郁闷了。


后来,我尝试了重新配置/home/medea作为挂载点,发现居然通过了。


我就到根目录下,   ls -al。总算发现问题了。原来我的/root的权限是     drwx------


我就想到了, 本地mount上后,会是另一种用户登录。   原来是root访问权限出问题了。


于是:

#chmod 755 /root 


在尝试

#mount -t nfs localhost:/root/nfs_root /root/book

 

OK!    成功。 ^_^

原创粉丝点击