Unix security automating script

Art Gentry gentry at kcdev.UUCP
Thu Mar 22 03:09:15 AEST 1990


In article <22817 at adm.BRL.MIL> konczal at mail-gw.ncsl.nist.gov (Joseph C. Konczal) writes:
>| #
>| # 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.
>


To do this under SysV use:


find / -type d -perm -002 -print
                      ^^^
and

find / -type d -perm -001 -print
                      ^^^






  [dead space to satisfy postnews <grrrrrrrrrr>]







-- 
| R. Arthur Gentry     AT&T Communications     Kansas City, MO     64106 |
| Email: gentry at kcdev.uucp          ATTMail: attmail!kc4rtm!gentry       |
| The UNIX BBS: 816-221-0475        The Bedroom BBS: 816-637-4183        |
| $include {std_disclaimer.h}       "I will make a quess" - Spock - STIV |



More information about the Comp.unix.wizards mailing list