-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautolog.8
83 lines (82 loc) · 2.32 KB
/
autolog.8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
.TH AUTOLOG 1L "Administrative Utilities" "Linux" \" -*- nroff -*-
.SH NAME
autolog \- Log out idle users
.SH SYNOPSIS
\fBautolog\fP [ \fBoptions\fP ]
.br
.SH DESCRIPTION
The program reads the utmp file, entry by entry. The
username for each 'user process' is compared to the entries in the
configuration file (see
.B autoconf(5)
). The first entry to match both the name, the group,
and the tty line of the process will be used to conduct the automatic
logout.
.SH OPTIONS
.TP
.B -a
(all processes) Print information on ALL utmp entries--not just user processes.
.TP
.B -d
(debug mode) This is helpful in setting up your configuration file.
The program runs in foreground rather than forking and it prints
out verbose messages about what it is doing.
.TP
.B -n
(nokill) Use this to prevent autolog from actually "killing"
anyone. Use -d and -n together when setting up a new
configuration file.
.TP
.B -f config_file_name
Use this to override the default: "/etc/autolog.conf"
.TP
.B -l log_file_name
Use this to override the default: "/var/log/autolog.log".
Note that if this file doesn't exist, no logging will happen.
Create the file (with touch) to enable logging.
.TP
.B -t idle_time
Use this to override the internal default idle time (minutes)
.TP
.B -g grace_period
Use this to override the internal default grace period (seconds)
.TP
.B -m yes/no
Use this to override the internal mailing switch. If "yes"
the program will send mail to the users right after killing them.
.TP
.B -c yes/no
Use this to override the internal "pre-clear" switch. If "yes"
the program will clear the terminal screen before warning the user.
.TP
.B -w yes/no
Do timeouts based on total session time--not idle time. (hard)
.TP
.B -L yes/no
If set to "yes" activities will be written to the logfile if
present.
.SH NOTES
There is no autolog daemon. To activate the functionality, autolog
has to be called periodically. This is usually done by cron.
.SH EXAMPLE
Run autolog dryrun to check configured kill candidates.
.IP
\f(CW$ autolog -d -n\fR
.PP
Example crontab line for autolog execution.
.IP
\f(CW0,10,20,30,40,50 * * * * /usr/sbin/autolog\fR
.SH FILES
.PD 0
.TP 20
.I /etc/autolog.conf
Configuration file for the autolog command.
.PD
.SH SEE ALSO
.BR autolog.conf (5)
.SH AUTHOR
.PD 0
Kyle Bateman <[email protected]>
.PP
Alexander Bergmann <[email protected]>
.PD