home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.admin
- Path: sparky!uunet!ftpbox!motsrd!white!sapphire.rtsg.mot.com!galena15!murphyn
- From: murphyn@rtsg.mot.com (Neal P. Murphy)
- Subject: Re: SECURITY -- How to list files having suid
- Message-ID: <murphyn.714843318@galena15>
- Sender: news@rtsg.mot.com
- Nntp-Posting-Host: galena15
- Organization: Motorola Inc., Cellular Infrastructure Group
- References: <1992Aug25.171601.3629@arizona.edu>
- Distribution: world,local
- Date: Wed, 26 Aug 1992 15:35:18 GMT
- Lines: 20
-
- 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?
-
- find / -type f -depth -print -ls | egrep " -..s| -.....s"
-
- shows all regular files with suid or sgid bits set. It does *not*
- look at directories, special files, symbolic links, etc.
-
- You should look at the mode of filesystems, mount points, disk
- block special files, disk character special files. None should be
- writeable by others. The special files should not be readable
- by others. Protecting filesystems and directories is something
- I do. preventing access to raw or block disk is good practice.
- If others can write to the raw or block device, they can change
- the contents of any file on disk. If they can read them, they can
- read the contents of files they shouldn't be otherwise able to read.
-
- NPN
-