Ubuntu: chown of a directory recursively

by on Mar.14, 2011, under Linux (Ubuntu)

When different users are working on the same directory, it’s often a problem to access files created with another user account, although you are the owner of that directory. In order to get around this permission issue, you might want to chown the directory to the corresponding owner. In order to do that, login with your administrator/root account, enter the terminal and type:

chown -R ftpuser:ftpgroup ./

This will change the ownership of the currently entered directory to the user ftpuser which belongs to the group ftpgroup.
The -R switch makes sure, that the ownership of all subdirectories will be updated as well.

1 Comment for this entry

Leave a Reply


Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!