[plug] chown and chmod questions.
maydwell at gmail.com
Thu Jan 11 20:24:46 WST 2007
Be careful if you're doing a recursive chmod to a setting without the
execute bit; this can lead to being unable to enter directories.
Whenever I've copied across a directory structure from windows I
usually use zsh's advanced globs and do a:
chown me directory directory/**/*
chmod 755 directory directory/**/*(/)
chmod 644 directory/**/*(.)
or if the system is too massive to be used as args to chmod/chown, I
just stick the glob into a for loop.
If I recall correctly I got a few answers from PLUG about how to solve
this very problem without requiring zsh. However I /do/ love zsh :)
More information about the plug