How do I change the owner of a folder in Linux?

How do I change the owner of a folder in Linux?
Answer
Use chown to change
ownership and chmod to change rights. use the -R option to apply the rights for all files inside of a directory too. Note that both these commands just work for directories too. The -R option makes them also change the permissions for all files and directories inside of the directory.
 

Tìm kiếm

Back
Top