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: [EMAIL PROTECTED]
google talk: [EMAIL PROTECTED]
:0 # copy & paste for your convenience
* ^From:.*sjansen@
/dev/null # /ignore [EMAIL PROTECTED]
signature.asc
Description: This is a digitally signed message part
/* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
