Page 1 of 1

How to change owner and group of directory

PostPosted: Sun Nov 07, 2010 11:50 am
by stephen
chown fred /var/www/subdomains


EXAMPLES
chown root /u
Change the owner of /u to "root".

chown root:staff /u
Likewise, but also change its group to "staff".

chown -hR root /u
Change the owner of /u and subfiles to "root".