On Tue, 12 Aug 2003, Norman Gaywood wrote:
> Date: Tue, 12 Aug 2003 12:50:01 +1000
> From: Norman Gaywood <[EMAIL PROTECTED]>
> To: Ram Smith <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
> Subject: Re: [SLUG] recursively change file permissions not directories
>
> On Tue, Aug 12, 2003 at 11:32:06AM +1000, Ram Smith wrote:
> > I have a shared directory structure where alot of the files in each
> > directory have permisions of 644 I wanting to change it so that the
> > files are chmod 664 letting all users in the group read and write to the
> > data. without nuking the permissions on the directories along with the
> > files.
>
> The way to do this properly, as others are showing, is with a:
>
> find . -type f | xargs chmod 644
This is not doing things properly and is highly dangerous. eg:
[EMAIL PROTECTED] touch ";chmod u+sx"
[ some time later ]
[EMAIL PROTECTED] find . -type f | xargs chmod 644
Andrew McNaughton
--
No added Sugar. Not tested on animals. May contain traces of Nuts. If
irritation occurs, discontinue use.
-------------------------------------------------------------------
Andrew McNaughton In Sydney
Working on a Product Recommender System
[EMAIL PROTECTED]
Mobile: +61 422 753 792 http://staff.scoop.co.nz/andrew/cv.doc
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug