On Sat, 2004-03-13 at 11:46, Curtis Vaughan wrote: > I just noticed that for an entire directory of files and folders, the > permissions are not really right. > > Or maybe it doesn't matter. I went ahead and changed all permission > recursively, but feel that permissions should be as follows: for all > files 660, whereas for all directories 770. Has anyone written a > script that will drill through a directory and change all the > permissions in such a manner?
Just off the top of my head here: for i in `find . -iname '*' -or -iname '.*'`; do if [ -d $i ]; then chmod 770 $i else chmod 660 $i fi done That should do it for you. -- Alex Malinovich Support Free Software, delete your Windows partition TODAY! Encrypted mail preferred. You can get my public key from any of the pgp.net keyservers. Key ID: A6D24837
signature.asc
Description: This is a digitally signed message part