Irix Security

This page contains information about how to secure Irix systems.

Useful Irix tips

Patches
SGI uses a base OS plus overlays patch system. The base OS (currently 6.5) is installed, then upgraded using a set of overlay CDs. These overlays contain all of the accumulated patches created since the release of Irix 6.5. New overlays are released quarterly.

Improve System Security
Buried in the Toolchest, this is a fairly useful GUI. It allows you to require passwords at login, lock non-user accounts such as lp and uucp, disable java scripting, and other such features. The application is the very first option in the System > System Manager > Security and Access Control Menu.

Chkconfig
Chkconfig is one method Irix uses to start daemons automatically. Many of these daemons do not need to be started. To change the status of a daemon, use the following syntax:

chkconfig <daemon> <off|on>

Here is an example of a fairly secure Irix configuration:

Cripple inetd
As always, turn off anything you don't need in /etc/inetd.conf. For the most basic desktop use, the only entry in inetd.conf that can't be commented out is sgi-fam.

Trim rc Scripts
After you've gone through chkconfig and inetd.conf, go through /etc/rc2.d and prune any scripts that start unneeded daemons. A very practical way to do this is simply to rename unneeded scripts with a lower-case s, enabling you to see that the script is disabled, but keep the script in its default location if you find you need it later. For example, changing

S60lp
to
s60lp

would keep lpd from starting at boot time.

Syslog
By default, syslog can grow to fill root very easily. Go to the System > System Manager > System Performance > Set System Log Options in the Toolchest and change the default log rotation to a size more compatible with your system.

Encaps
Encaps are free, pre-compiled software packages maintained by WSG. There is no reason you can't compile your own software if you wish, but using Encaps can greatly increase efficiency. Your needs may vary, but WSG recommends the following encaps:

  • epkg: Encap package manager. Necessary to install Encaps.
  • gzip: GNU zip. A commonly used compression tool.
  • OpenSSH: Secure Shell. Creates an encrypted connection between computers.
  • rpcbind: Controls remote services. Unlike vendor rpcbind, the Encap version can be wrappered.
  • tcp-wrappers: Used to restrict access and log connections to a machine.
  • zlib: Compression libraries needed by gzip

Voodoo Magic
This is not strictly a security tip, but it is occasionally useful to boot from CD to check a disk or change partition information. The syntax is easy to forget.

General guidelines

When working on any UNIX based system, be sure to check the following: