|
From: | Philip Rowlands |
Subject: | Re: enhancement request for gnu chmod |
Date: | Mon, 2 Oct 2006 21:06:07 +0100 (BST) |
On Mon, 2 Oct 2006, Doug McLaren wrote:
Right now, the best way to do what I'm referring to is something like this -- find /directory -type d -print0 | xargs --no-run-if-empty -0 chmod 755 find /directory '!' -type d '!' -type l -print0 | \ xargs --no-run-if-empty -0 chmod 644
If your directories have any eXecute bit already set, which they probably do, this will work:
$ chmod --recursive a+rX /directoryThe "X" meaning "execute only if the file is a directory or already has execute permission for some user (X)" (from man chmod(1)).
Cheers, Phil
[Prev in Thread] | Current Thread | [Next in Thread] |