[aklug] Re: chown, chgrp, and chmod

From: Scott A. Johnson <scott.a.johnson@gmail.com>
Date: Fri Jul 01 2011 - 08:12:52 AKDT

Worked perfect. Thanks, Erinn!
Scott

On Thu, Jun 30, 2011 at 19:39, Erinn Looney-Triggs <
erinn.looneytriggs@gmail.com> wrote:

> On 6/30/2011 8:05 PM, Scott A. Johnson wrote:
> > I have a directory with thousand of subdirectories and thousands of files
> in
> > each subdirectory. Is there anyway to run chmod/chgrp/chown at the top
> of
> > the file tree and have the changes apply recursively to the files within
> the
> > subdirectories, but not the directory itself?
> > For instance:
> >
> > /Top/Level/Directory/File.txt
> >
> > I'd like to be in /Top and run "chown -R root" and have the ownership
> change
> > on all the files under /Top (eventually making its way to File.txt), but
> I
> > need the ownership on /Top/Level and /Top/Level/Directory to stay as-is.
> >
> > Thanks.
> >
>
> From /Top:
>
> find . -type f -exec <chmod|chown|chgrp> \{\} \;
>
> -Erinn
>
> ---------
> To unsubscribe, send email to <aklug-request@aklug.org>
> with 'unsubscribe' in the message body.
>
>

-- 
Scott A. Johnson
scott.a.johnson@gmail.com
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Fri Jul 1 08:13:40 2011

This archive was generated by hypermail 2.1.8 : Fri Jul 01 2011 - 08:13:40 AKDT