Changing ownership / group Using recursive command
Deron Meranda
deron.meranda at gmail.com
Fri Feb 18 20:32:22 UTC 2005
On Fri, 18 Feb 2005 14:25:10 -0500, Tim Holmes <tholmes at mcaschool.net> wrote:
> chown tholmes /var/www/html/mcaschool/* -R
> chgrp apache /var/www/html/mcaschool/* -R
Options should go before arguments, so the -R should
be right after the command.
You can combine chown and chgrp in one command,
using the syntax "tholmes:apache".
You may want to include the directory itself, and not
just the contents --- replace the "/*" tailer with "/.".
You may want to also use the -h option, to change
ownership of any symlinks in the tree as well (rather
than the files the symlinks point to).
So, in summary,
chown -Rh tholmes:apache /var/www/html/mcaschool/.
--
Deron Meranda
More information about the fedora-list
mailing list