Bastille: Classic Linux and Unix Security - Page 2
Linux & Unix Security
- Unix Security: How Do You Know When You've Been Owned?
- Linux on Your WLAN: Configure WPA
- Fine-Tuning Linux Administration with ACLs
- Enhance Security with a Linux Logging Server
- Unix Security: Treat Compromises Like Disasters
# chmod u+s ping
# find / -type f \( -perm -04000 -o -perm -02000 \) \-exec ls -l {} \;
Should Bastille disable clear-text r-protocols that use IP-based authentication?
Yes. This includes rsh, rlogin, rcp, rdist, which send all traffic in cleartext. You shouldn't be using these anyway, as they have long been supplanted by ssh and scp.
Would you like to password protect single-user mode?
Yes. If there is no password, then anyone can gain root privileges by rebooting to single-user mode.
Should Bastille ensure the telnet service does not run on this system? Not only Yes, but Heck Yes, unless you are absolutely positively 100 percent certain you wish to leave it running. telnet is completely insecure. This is not the same as disabling the telnet client, which is still useful for network troubleshooting.
Disabling the gcc compiler isn't much of a security measure. If you need it, don't disable it. If you don't need it, remove it.
Would you like to put limits on system resource usage?
It's pretty safe to answer Yes. Core dumps aren't all that helpful to end users and can grow very large, and setting a limit on user processes is usually a good idea. Use this command to count user processes, so you'll know if Bastille's limit of 150 is enough:
$ ps --no-headers -U [username] | wc -l
You can change these in /etc/security/limits.conf.
Would you like to add additional logging? Yes, you would.
Security Blogging
Enterprise Networking Planet Managing Editor Michael Hall blogs about Internet security and privacy daily at Open Networks Today
ICMP Attacks Illustrated is a nice guide on ICMP perils.
When you reach the end, you can either activate the changes, or go back and make changes. Bastille tells you how to start, stop, and test your firewall script. Look in /etc/Bastille to see your new scripts, and /var/log/Bastille for a record of everything it did.
Do this a few times on different servers and desktop PCs, and you'll have a good education in the basics of hardening Linux systems.



