Bernie Pannell <[email protected]> writes:
> try doing the 2 commands in the opposite order, setting everything to
> 664, & then set the directories to 775, ie:
>
> chmod -R 664*
> chmod -R 775 *.
Epic FAIL!
The first command will remove the execute bit from every directory,
causing you some incredible grief, and then the second command just
won't work because you no longer have permissions to get at the
contained files sensibly.
It /could/ work if you did this: chmod -R ug=rwX,o=rX *
That uses the GNU chmod specific "only set executable if this is a
directory" flag, which works more nicely, but probably isn't exactly the
right answer in the long term.
Regards,
Daniel
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html