home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!chinacat!rpp386!jfh
- From: jfh@rpp386.lonestar.org (John F. Haugh II)
- Newsgroups: comp.unix.admin
- Subject: Re: SECURITY -- How to list files having suid
- Message-ID: <21411@rpp386.lonestar.org>
- Date: 26 Aug 92 12:46:02 GMT
- References: <1992Aug25.171601.3629@arizona.edu>
- Reply-To: jfh@rpp386.cactus.org (John F. Haugh II)
- Distribution: world,local
- Organization: River Parishes Programming, Austin, Republic of Texas
- Lines: 38
-
- In article <1992Aug25.171601.3629@arizona.edu> jjr@ace.ece.arizona.edu (Jeffrey J. Rodriguez) writes:
- >I'd like to do a security check on my SPARCstation (SunOS 4.1.1).
- >How can I list all files having suid or sgid set?
- >With "find -perm" I can only check for exact matches of bits.
- >I'd like to just check the suid & sgid bits and not check the
- >other permission bits.
-
- You aren't reading the find(1) manpage closely enough. It is possible
- to check single bits. For example,
-
- % find /bin -perm -4000 -print
- /bin/ps
- /bin/mkdir
- /bin/df
- /bin/disable
- /bin/enable
- /bin/passwd
- /bin/su
- /bin/rmdir
- /bin/newgrp
- /bin/ipcs
- /bin/sg
- /bin/renice
- /bin/pstat
- /bin/login
- /bin/gpasswd
- /bin/chfn
- /bin/chsh
- /bin/chage
-
- >What other security checks should I perform?
-
- Get a copy of COPS and run it.
- --
- John F. Haugh II | "The US Government has the Midas Muffler
- Ma Bell: (512) 251-2151 | touch: everything they touch turns to
- UUCP: ...!cs.utexas.edu!rpp386!jfh | shit."
- Domain: jfh@rpp386.cactus.org | -- Jay Maynard
-