[root@skills /]# exportfs exportfs: No host name given with /aigo (rw,sync,wdelay,hide,secure,no_root_squash,no_all_squash,subtree_check,secure_locks,mapping=identity,anonuid=-2,anongid=-2), suggest *(rw,sync,wdelay,hide,secure,no_root_squash,no_all_squash,subtree_check,secure_locks,mapping=identity,anonuid=-2,anongid=-2) to avoid warning exportfs: No host name given with /tmp (rw,sync,wdelay,hide,secure,no_root_squash,no_all_squash,subtree_check,secure_locks,mapping=identity,anonuid=-2,anongid=-2), suggest *(rw,sync,wdelay,hide,secure,no_root_squash,no_all_squash,subtree_check,secure_locks,mapping=identity,anonuid=-2,anongid=-2) to avoid warning /root 192.168.0.252 /aigo <world>; /tmp <world>; [root@skills /]# showmount -a All mount points on skills:
发布评论
评论(5)
运行exportfs了没有?
[root@skills /]# exportfs
exportfs: No host name given with /aigo (rw,sync,wdelay,hide,secure,no_root_squash,no_all_squash,subtree_check,secure_locks,mapping=identity,anonuid=-2,anongid=-2), suggest *(rw,sync,wdelay,hide,secure,no_root_squash,no_all_squash,subtree_check,secure_locks,mapping=identity,anonuid=-2,anongid=-2) to avoid warning
exportfs: No host name given with /tmp (rw,sync,wdelay,hide,secure,no_root_squash,no_all_squash,subtree_check,secure_locks,mapping=identity,anonuid=-2,anongid=-2), suggest *(rw,sync,wdelay,hide,secure,no_root_squash,no_all_squash,subtree_check,secure_locks,mapping=identity,anonuid=-2,anongid=-2) to avoid warning
/root 192.168.0.252
/aigo <world>;
/tmp <world>;
[root@skills /]# showmount -a
All mount points on skills:
现在的情况是:我在192.168.0.252上:
#mount 192.168.55.155:/root /mnt -t nfs可以成功
可是不能再/mnt下写文件。提示权限不够。我已设置rw
#cat /etc/exports
/root 192.168.0.252(rw)
add no_root_squash option, like this
/root 192.168.0.252(rw,no_root_squash)
ok,thanks!!!