Previous Next Contents

2. Installation

2.1 Getting sources and compiling

You can install suas serveral ways. You can download pre-compiled executable packages for RedHat Linux (.rpm) and FreeBSD port package, or compile suas yourself (recommended).

  1. You can download suas source tarball from ftp site ftp://atrey.karlin.mff.cuni/pub/local/mj/. Do it and extract it to the /usr/src directory (cd /usr/src; tar xzvf suas-x.x.tar.gz).
  2. Edit src/suas.h and execute ./configure;make all from src directory.
  3. From src/nfsd directory execute ./BUILD to compile NFS daemon with suas extensions.
  4. make install will install suas and nfs daemon on your system.

2.2 Setting up "server"

Server must run suas daemon, suad. Add it to your initialization scripts, e.g. /etc/rc.d/rc.local.

All suas configuration files lives in /etc/suas directory. You must edit clientlist. This file contains list of clients which are allowed to connect to suad. Syntax of this file is very simple; each line contains host/network address and netmask. Example:

# Allow all hosts from "C" network 192.168.1.0
192.168.1.0/24
Suas password file (/etc/suas/passwd) is unix-style shadowed password file. This file should be linked (e.g. from nfs-mounted directory) to /etc/passwd on each workstation. It's recommended to share same password file between workstations and server. So make a hard link to /etc/passwd: ln /etc/passwd /etc/suas/passwd.

The userlist file (/etc/suas/userlist) contains user's encrypted passwords (MD5 hashes). This file must be root.root owned and mode 600 (u+rw). This file is maintained by suad (and suac -c).

2.3 Setting up "client"

Add suamaster to your initialization scripts. If you are running suamaster with getties, don't forget to comment out these ttys from inittab(5) file.

If you are using pam, add pam_suas to /etc/pam.d/* files.


Previous Next Contents