LOGINHOG(1)

Multiple Login Preventor
              (C)opyright 1994-1995, B. Scott Burkett
                        All Rights Reserved

NAME
loginhog - Multiple Login Preventor

SYNOPSIS
loginhog

DESCRIPTION
loginhog will prevent multiple logins from certain users. It gathers its info from UTMP_PATH , which should be declared in /usr/include/utmp.h by GCC. It is typically set to "/etc/utmp", which typically links to "/var/adm/utmp".

USAGE
It should be run at the end of /etc/profile.

CONFIGURATION
The format of each line in /etc/loginhog.conf is as follows:

username
    This is a UNIX regular expression used to match account names

ttydevice
    This is a UNIX regular expression used to match tty devices tty[123] will match tty1, tty2, or tty3
    ttyS[125] will match ttyS1, ttyS2, or ttyS5

When a user logs into the system, loginhog will try and find a match for them in the /etc/loginhog.conf file. If a match on the name and terminal device is found, the user is shown the /etc/loginhog.warn file, and the user's process will be terminated. If you would like for a user to be exempt (i.e. root), simply specify a non-existent terminal device (i.e. tty999). loginhog will only make use of the first match in the configuration file!

See the sample loginhog.conf file for examples.

AUTHOR
Scott Burkett
scottb@sedl.com

BUGS
None that I am aware of, but to quote Dennis Miller, "I could be wrong".