On Sat, 13 Mar 2004 the mental interface of Curtis Vaughan told: > 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? #! /bin/sh for i in `find . -type d`; do chmod 770 $i; done #! /bin/sh for i in `find . -type f`; do chmod 660 $i; done Not tested! Must be fired up in the rootdir, where youre file are. Otherwise change . to the absolute dirpath. Ciao Elimar -- Do you smell something burning or ist it me?
Attachment:
signature.asc
Description: Digital signature