[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: File and directory permissions

On Mon, 2002-04-22 at 11:10, Martin Alfke wrote:

> What Martin sent in will work only if there are no white spaces 
> in file- and directory-names.
> I would prefer this one:
> find [path] -type d -printf '"%p"\n' | xargs chmod 755
> (Please try first if %p is the correct term. Maybe
> %n is the correct substitution.)

Or use find [path] -type d -exec chmod 2775 {} \;
which is a little bit slower, but does not give you problems with spaces
in filenames.

Or use find [path] -type d -print0 | xargs -0 chmod 2775
because both find and xargs understand using null characters as

Tot ziens,


To UNSUBSCRIBE, email to debian-isp-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: