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

1 Answer

0 votes
by (48.7k points)

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.