[aklug] Re: chmod

From: Scott A. Johnson <scott.a.johnson@gmail.com>
Date: Wed Feb 20 2013 - 08:06:29 AKST

Thank you all for the many suggestions. I tried several of these (just to
become more familiar) and they worked!

Scott

On Wed, Feb 13, 2013 at 7:45 AM, Erinn Looney-Triggs <
erinn.looneytriggs@gmail.com> wrote:

> On 02/12/2013 10:27 PM, Scott A. Johnson wrote:
> > I have tens of thousands of files nested inside several thousand
> > directories on a data dump drive. I need to set different chmod levels
> > for the files inside the directories, but a different chmod for the
> > directories themselves. Example, the directories need to be 777 while
> > the files are 755. Can I do this easily? Luckily I don't need to set
> > different chmod levels for different/various files and/or directories.
> > ALL the files should be 755 - ALL the directories 777. Unfortunatley:
> > "sh# chmod -R 777 /" doesn't work since it will set the directories and
> > files to be the same.
> >
> > Thanks.
> >
> > Scott
> >
> > --
> > Scott A. Johnson
> > scott.a.johnson@gmail.com <mailto:scott.a.johnson@gmail.com>
>
> For directories:
> find . (or whatever location) -type d -exec chmod 777 \{\} \;
>
> For files:
> find . -type f -exec chmod 755 \{\} \;
>
> -Erinn
>
>

-- 
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 Wed Feb 20 08:07:18 2013

This archive was generated by hypermail 2.1.8 : Wed Feb 20 2013 - 08:07:18 AKST