How to change owner and group of directory
Posted: Sun Nov 07, 2010 11:50 am
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".