How can I change a owner of a file in AIX? I created a file using my personal account and then I tried to change user for this file:
chown rootuser myfile.csv
chown: myfile.csv: Operation not permitted.
Then I changed to root user
sudo /usr/bin/su - rootuser
and tried to change the owner of this file
chown rootuser myfile.csv
chown: myfile.csv: Not owner
How can I change the owner of this file?
root
not being able to do that, this is really strange. By any chance, are you in a corporate environment where you authenticate with something like NIS/LDAP? Is this file local to your box or is it from a network-shared partition? What is the fileBill_Item_Tag_data.csv
? Ismyfile.csv
a symbolic link? – Joseph R. Sep 23 '13 at 18:48