chmod -R ug+w .
Actually, the effect of this command is filtered by the current umask setting, while chmod -R 775 . wouldn't
Ciao! --bronto
Update: After Abigail-II's reply I double checked the man page, and he is actually right:
A combination of the letters `ugoa' controls which users'
access to the file will be changed: the user who owns it
(u), other users in the file's group (g), other users not
in the file's group (o), or all users (a). If none of
these are given, the effect is as if `a' were given, but
bits that are set in the umask are not affected.
So, for example, chmod +rx and chmod a+rx behave differently, depending on the umask.
What remains from what I wrote above and from Abigail's reply is that you should those ugly numerical file modes if you want to run on the safe side :-)
The very nature of Perl to be like natural language--inconsistant and full of dwim and special cases--makes it impossible to know it all without simply memorizing the documentation (which is not complete or totally correct anyway).
--John M. Dlugosz |