sjansen at buscaluz.org
Fri Jan 20 10:31:05 MST 2006
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=
For large numbers of files, using xargs will be much faster because it
will require less forking.
Symbolic notation should generally be used with chmod because it is both
more flexible and easier to read. (Some versions of the chmod man page
even list the numerical representation as deprecated, although if you
actually believe they'll ever be removed I've got some ocean front
property in Arizona to sell you.)
Stuart Jansen e-mail/jabber: sjansen at buscaluz.org
google talk: stuart.jansen at gmail.com
:0 # copy & paste for your convenience
/dev/null # /ignore sjansen!*@*
-------------- 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/4bf440ed/attachment.bin
More information about the PLUG