[olug] Chgrp / chown question

Kenton Brede xyf at nixnotes.org
Thu Sep 11 19:31:28 UTC 2003


On Thu, Sep 11, 2003 at 02:13:31PM -0500, Tim - DZ wrote:
> So I have a set of directories.  Under the root of this set there are
> various permissions set and various directories owned by particular
> users and groups.
> 
> The goal is to basically be able to change a specific owner to a
> different owner recursively on all files.  And then independantly do the
> same for the group.
> 
> Now chown has a -from option, so I can recursively (-R option) find all
> files owner by user A and change the owner on just those files to user
> B.  
> 
> But how can I do the same for groups?

You can use "chgrp -R"  Or do them both at once with chown -
$ chown -R user.group *
               ^
Some variants of chown use ":" as a delimiter and not "." as I used
above.
Kent

-- 
"I am always doing that which I can not do, 
   in order that I may learn how to do it." --Pablo Picasso



More information about the OLUG mailing list