How to change owner of files or directories recursively in Linux?

To change owner of files or directories recursively in Linux use the following command: (MAKE SURE YU ARE IN THE DIRECTORY YOU WANT TO CHANGE THE FILES/FOLDERS WITHIN)
chown -R user/group — (substitute user/group with the user name and group name.

For example:
chown -R paul/administrator — (paul is the name of the user and administrator is the name of the group)

For future reference, “-R” is used by nearly all programs to specify a recursive action.


Didn't find what you were looking for? Try these links:

You can follow any responses to this entry through the RSS 2.0 feed.