Subject: Re: access priveleges -- part 2

From: Howard Schultens <[email-masked]>
Date: Tue, 31 Oct 2000 10:32:19 +0100

I just posted:

>andrew morgan wrote:
>> 
>> .....
>> 
>> Also, you probably don't want the setgid bit for files, just directories.
>> You can fix this by going to the top-level directory you want to make the
>> change and running:
>> 
>> find ./ -type f | xargs chmod 770
>> 
>>         Andy
>
>
>I tried this out, and in its present form it doesn't work with
>Apple filenames that have embedded blanks.  There must
>be a trick to escape the blanks in this command -- can you help me out
>here?

This seems to do it:

find ./ -type f -exec chmod 770 '{}' \;

Note: SINGLE quotes are necessary, as is escaping the semicolon.

-- Howard
 
--------------------------------------------------------------------
Dipl.-Phys. H.Schultens     Tel: +49 551 39-5914
Zentrum Physiologie         FAX: +49 551 39-5923
Humboldtallee 23
37073 Goettingen       mailto:[email-masked]
Germany               http://www.neuro-physiol.med.uni-goettingen.de
--------------------------------------------------------------------