一个NFS文件属主的奇怪问题
有一些文件在在NETAPP的NFS存储上,当把NFS mount到Sun Sparc(Solaris)机器上时,文件的属主是user1,但是当mount到Linux(X86_64)或Sun X86机器上文件属主就变成了user2.就像这个:
Sun Sparc机器上显示:
$ ls -lh
-rw-r--r-- 1 user133K Oct 61.txt
X86机器上显示:
$ ls -lh
-rw-r--r-- 1 user2 33K Oct 61.txt
而且我想改变文件属主,会提示not owner的提示。请教有人遇到过没有?如何解决?
Sun Sparc机器上显示:
$ ls -lh
-rw-r--r-- 1 user133K Oct 61.txt
X86机器上显示:
$ ls -lh
-rw-r--r-- 1 user2 33K Oct 61.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. LS讲的清楚:em27:
页:
[1]