+2 votes
in Operating Systems by (71.8k points)
I need to update some of files and folders, but they are owned by root. How can I change the owner?

1 Answer

+1 vote
by (349k points)
selected by
 
Best answer

Run the following command as root:

chown -R usename:groupname *

It will recursively change the owner of all files and folder in the current directory.


...