tensai at zmonkey.org
Fri Jan 20 11:23:44 MST 2006
On Fri, 2006-01-20 at 10:31 -0700, Stuart Jansen wrote:
> On Fri, 2006-01-20 at 10:13 -0700, Russel Caldwell wrote:
> > Is there an easy way of changing file permissions recursively without
> > changing directory permissions?
> I know there's already two good responses, but neither is 100% correct
> so I'm tossing my hat in the ring.
> find . -type f | xargs chmod u=rwx,g+rx,o=
To be completely safe you should use null separators to account for
files with spaces.
find . -type f -print0 | xargs -0 chmod ...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://plug.org/pipermail/plug/attachments/20060120/4a019712/attachment.bin
More information about the PLUG