Cannot chown my own files from NFS
Posted
by
valpa
on Server Fault
See other posts from Server Fault
or by valpa
Published on 2012-10-06T11:56:04Z
Indexed on
2012/10/06
15:39 UTC
Read the original article
Hit count: 253
We have a NFS server provide home directory for many account, which provided by a NIS server.
I have account A and B. In /home/A, I try to copy "cp -a /home/B/somedir ~/". Then I found in /home/A/somedir, all files are owned by user A.
Then if I do "chown -R B:B somedir", I got "Operation not permitted" error.
I am user A, "cp -a" didn't preserve the original user (B). Then I cannot chown my own files.
Any suggestion?
I fix my own issue by "chmod 777 /home/A", "su - B" and "cp -a somedir /home/A/", and "su - A", then "chmod 755 /home/A". But it is not a good solution.
© Server Fault or respective owner