Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4466667
  • 博文数量: 356
  • 博客积分: 10458
  • 博客等级: 上将
  • 技术积分: 4734
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-24 14:59
文章分类

全部博文(356)

文章存档

2020年(17)

2019年(9)

2018年(26)

2017年(5)

2016年(11)

2015年(20)

2014年(2)

2013年(17)

2012年(15)

2011年(4)

2010年(7)

2009年(14)

2008年(209)

分类: LINUX

2013-07-19 16:45:13

服务器用的是fedora 12 

以前在helper2416开发板上挂载服务器上的nfs目录读写都没有问题
服务器上的 /etc/exports
/opt/target     *(rw,async,no_root_squash)

今天虚拟机装了个ubuntu12.04 64bit版,不能mount,提示什么access denied ,在/etc/exports下  ()中加insecure可解决
然后就是挂载nfs目录后只读不可写问题了,折腾半天,
后面发现是要求UID,GID与服务器一致
于是在服务器上用id命令一查
$id
uid=501(jyx) gid=500(rdd) 组=500(rdd)

修改/etc/exports
/opt/target     *(insecure,rw,sync,all_squash,anonuid=501,anongid=500)

服务器上
$sudo service nfs restart

ub上再挂载nfs,发现可写了。


阅读(12076) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~