Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!uflorida!haven!adm!news From: konczal@mail-gw.ncsl.nist.gov (Joseph C. Konczal) Newsgroups: comp.unix.wizards Subject: Unix security automating script Message-ID: <22817@adm.BRL.MIL> Date: 20 Mar 90 21:45:50 GMT Sender: news@adm.BRL.MIL Lines: 21 | # | # It would be nice to have full path names in the next two reports. But how? | # | echo "" | echo "* Directories that can be written to by everyone:" | ls -lR / | awk '/^d[rwx]......w[x-]/ { print }' | echo "" | echo "* Directories with search permissions for everyone:" | ls -lR / | awk '/^d[rwx]......w[x-]/ { print }' Replace the ls ... lines with: find / -type d -perm -0002 -print find / -type d -perm -0001 -print This works under SunOS 4.0, 4.3 BSD, and 4.4 BSD; I don't know about Sys. V. You can replace "-print" with "-ls" to get more information about each directory. Joe Konczal