mount.nfs: access denied by server while mounting 一个解决办
I googled and found that since the port is over 1024 I needed to add the insecure option to the relevant line in /etc/exports on the server. Once I did that (and ran exportfs -r ), the mount -a on the client wor ked. //如果端口号大于1024,
I googled and found that since the port is over 1024 I needed to add the "insecure" option to the relevant line in /etc/exports on the server. Once I did that (and ran exportfs -r), the mount -a on the client worked.
//如果端口号大于1024,则需要将 insecure 选项加入到配置文件(/etc/exports)相关选项中mount客户端才能正常工作:
查看 exports 手册中关于 secure 选项说明也发现确实如此
[root@lzgonline init.d]# man exports
secure,This option requires that requests originate on an Internet port less than IPPORT_RESERVED (1024). This option is on by default. To turn it off, specify insecure.
//secure 选项要求mount客户端请求源端口小于1024(然而在使用 NAT 网络地址转换时端口一般总是大于1024的),默认情况下是开启这个选项的,如果要禁止这个选项,则使用 insecure 标识
修改配置文件/etc/exports,加入 insecure 选项
/home/lzgonline/rootfs *(insecure,rw,async,no_root_squash)
保存退出
然后重启nfs服务:service nfs restart
然后问题就解决了
推荐阅读
-
mount.nfs: access denied by server while mounting 一个解决办
-
NFS挂载问题 mount.nfs: access denied by server while mounti
-
NFS挂载时出现"access denied by server while mounting"的解决方法
-
mount.nfs:access denied by server while mounting **原因
-
NFS挂载问题 mount.nfs: access denied by server while mounti
-
mount.nfs:access denied by server while mounting **原因
-
mount.nfs: access denied by server while mounting解决由权限
-
mount.nfs: access denied by server while mounting解决由权限
-
NFS挂载时出现"access denied by server while mounting"的解决方法