Unix security automating script
Joseph C. Konczal
konczal at mail-gw.ncsl.nist.gov
Wed Mar 21 07:45:50 AEST 1990
| #
| # 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
More information about the Comp.unix.wizards
mailing list