Ubuntu: chown of a directory recursively
by admin 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.
June 10th, 2013 on 19:35
Thanks for posting this. Was helpful!