Re: Changing ownership / group Using recursive command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 18 Feb 2005 14:25:10 -0500, Tim Holmes <tholmes@xxxxxxxxxxxxx> 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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux