Path: utzoo!attcan!uunet!husc6!bloom-beacon!bu-cs!purdue!spaf From: spaf@cs.purdue.edu (Gene Spafford) Newsgroups: news.sysadmin Subject: Re: Security checkup Message-ID: <5014@medusa.cs.purdue.edu> Date: 3 Oct 88 15:34:02 GMT References: <167@carpet.WLK.COM> Sender: news@cs.purdue.EDU Reply-To: spaf@cs.purdue.edu (Gene Spafford) Distribution: na Organization: Department of Computer Science, Purdue University Lines: 67 Here's a very rough list of things to check: 1) make sure / /bin /usr /usr/bin /etc /usr/spool and any other bin directories are all mode 755 or less (ie, 555, 751, etc). 2) Allow NO accounts without passwords, including uucp. 3) Don't have any accounts other than root with uid 0 4) Make sure no files in any bin or /etc are writeable by anyone other than user root (or bin, if you have things set up that way -- if you do, don't have bin's entry in /etc/passwd with a runnable shell or password). 5) crontab, mem, kmem, uucp/L.sys should not be readable by world. Crontab should probably be mode 600. The rest should be something like 440. Programs that read kmem to display status should be setGid to some group (named, kmem, for instance). 6) On many systems, "at" is a security hole. If no one uses it, disable it. 7) Don't run anything out of crontab as root unless you absolutely must. For instance, to run the nightly news scripts, use "su" in the crontab file to run the scripts as user news. E.g., 40 1 0 0 0 su news