Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!mips!daver!kcdev!gentry From: gentry@kcdev.UUCP (Art Gentry) Newsgroups: comp.unix.wizards Subject: Re: Unix security automating script Message-ID: <1083@kcdev.UUCP> Date: 21 Mar 90 17:09:15 GMT References: <22817@adm.BRL.MIL> Reply-To: gentry@kcdev. (Art Gentry) Organization: AT&T Kansas City, Mo. Lines: 51 In article <22817@adm.BRL.MIL> konczal@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 ] -- | R. Arthur Gentry AT&T Communications Kansas City, MO 64106 | | Email: gentry@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 |