UNIX daemon for limiting user time on the machine.
Go to file
Petar Kapris 256a972787 Remove getdisc function completely
The function getdisc doesn't seem to serve any purpose when it comes to
checking user idle time, by the time it's called, the part of check_idle
which checks access time to the terminal will have already finished, and
there is no reason that a check for idle time on a terminal should act
any differently based on the line discipline. Since the function serves
no purpose, and the call and check of it's result seems like it only
introduces a potential bug, and has no reason to be there, the function
has been removed, as well as the code in chk_timeout which calls it.

NOTE: at this point, the function didn't even check the line discipline,
i gutted it so it would only return the constant N_TTY, i was planning
on rewriting the function to get the terminal line discipline in a more
portable way, since the original way wasn't, but ultimately decided it
didn't even need to exist in the first place.
2020-12-28 23:39:40 +01:00
debian Added changelog 2009-05-31 18:52:55 -06:00
Makefile Add missing make dependency in `install' target 2020-12-10 13:48:06 +01:00
README Fix documentation errors and typos in README 2020-11-24 21:58:09 +01:00
timeoutd.8 Add exit statuses to new manpage section 2020-12-10 15:55:14 +01:00
timeoutd.c Remove getdisc function completely 2020-12-28 23:39:40 +01:00
timeouts Imported Debian patch 1.5-10.1 2009-01-04 23:11:59 -07:00
timeouts.5 Imported Debian patch 1.5-10.1 2009-01-04 23:11:59 -07:00

TIMEOUTD 1.5 by Shane Alderton

Timeoutd is a programme which allows you to control the following
characteristics on a user by user and/or group by group basis for
each tty on your system:

- maximum idle time
- maximum time per session
- maximum time per day
- times when people can/can't login on specific ttys

To build timeoutd, you should make any changes to the makefile for
your preferred compilation options, then simply:

make

The next step is to install a timeouts file in /etc specifying
the parameters for each line/user/group combination.  You can use
the sample file provided in the distribution as a starting point
after reading the timeoutd.8 and timeouts.5 man pages.

Once you have installed the timeouts file in /etc, you can type:

make install

to install the timeoutd binaries and man pages.

Then it is just a matter of running /usr/sbin/timeoutd.  You may want
to add a line to your /etc/rc or /etc/rc.local (or whatever) to run
timeoutd at boot time.

If you wish, you can also modify your login programme to have timeoutd
run at login time to check whether each user is allowed to login or not.
Otherwise, users who are not allowed to login will be logged off within
1 minute of logging in.

Another (albeit less certain) way of doing this is to put the following
line in /etc/profile near the top of the file:

/usr/etc/timeoutd `whoami` `basename \`tty\`` || exit


Please send bugs, comments, suggestions to:
shanea@bigpond.net.au (Shane Alderton)