免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2686 | 回复: 2

一个NFS文件属主的奇怪问题 [复制链接]

论坛徽章:
0
发表于 2011-10-15 02:11 |显示全部楼层
有一些文件在在NETAPP的NFS存储上,当把NFS mount到Sun Sparc(Solaris)机器上时,文件的属主是user1,但是当mount到Linux(X86_64)或Sun X86机器上文件属主就变成了user2.
就像这个:
Sun Sparc机器上显示:
$ ls -lh
-rw-r--r-- 1 user1  33K Oct 6  1.txt

X86机器上显示:
$ ls -lh
-rw-r--r-- 1 user2 33K Oct 6  1.txt

而且我想改变文件属主,会提示not owner的提示。请教有人遇到过没有?如何解决?

论坛徽章:
0
发表于 2011-10-15 03:34 |显示全部楼层
Sun Sparc机器上显示:
$ ls -lh
-rw-r--r-- 1 user1  33K Oct 6  1.txt

X86机器上显示:
$ ls -lh
-rw-r--r-- 1 user2 33K Oct 6  1.txt

The common cause of this problem is because user1 on Sparc and user2 on Linux has the same UID. Login to both machines as user1 and user2 and type id to see whether they have the same uid or not.

而且我想改变文件属主,会提示not owner的提示

By default, the owner of the file can't give away (change) ownership. Only root can.

Hope it helps.

论坛徽章:
0
发表于 2011-10-15 11:39 |显示全部楼层
LS讲的清楚
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP