Linux – Chown operation not permitted for root

chowndebianlinuxroot

I try to chown the owner of a file to root, but I can't. I'm doing this as root. I get the following message:

chown: changing ownership of `ps': Operation not permitted

Best Answer

The immutable attribute might be set on the file. Remove it with

chattr -i <file>
Related Topic