home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!warwick!str-ccsun!strath-cs!baird!jim
- From: jim@cs.strath.ac.uk (Jim Reid)
- Newsgroups: comp.unix.admin
- Subject: Re: SECURITY -- How to list files having suid
- Message-ID: <JIM.92Aug26095000@hunter.cs.strath.ac.uk>
- Date: 26 Aug 92 08:50:00 GMT
- References: <1992Aug25.171601.3629@arizona.edu>
- Sender: news@cs.strath.ac.uk
- Distribution: world,local
- Organization: Computer Science Dept., Strathclyde Univ., Glasgow, Scotland.
- Lines: 22
- Nntp-Posting-Host: hunter
- In-reply-to: jjr@ace.ece.arizona.edu's message of 26 Aug 92 00:16:01 GMT
-
- 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.
-
- The -s option to ncheck does this. [It's also a lot faster than find
- because it can use the raw disk instead of traversing the directory
- hierarchy and running stat() on every file.]
-
- What other security checks should I perform?
-
- Files and directories with world write permission, accounts with no
- password (or easily guessed passwords), over-tolerant /etc/hosts.equiv
- and/or .rhosts files, device files in user directories. Sounds like
- you need to get hold of the COPS package to make regular security
- sweeps on your machines. COPS will be available from you nearest
- archive site.
-
- Jim
-