Blame modules/pam_console/console.handlers.5

Packit 7e982e
.\" Copyright 2005 Red Hat Software, Inc.
Packit 7e982e
.\" Written by Tomas Mraz <tmraz@redhat.com>
Packit 7e982e
.TH console.handlers 5 2005/3/18 "Red Hat" "System Administrator's Manual"
Packit 7e982e
.SH NAME
Packit 7e982e
console.handlers \- file specifying handlers of console lock and unlock events
Packit 7e982e
.SH DESCRIPTION
Packit 7e982e
/etc/security/console.handlers determines which programs will be run when an
Packit 7e982e
user obtains the console lock at login time, and when the user loses it
Packit 7e982e
on log out. It is read by the pam_console module.
Packit 7e982e
Packit 7e982e
The format is:
Packit 7e982e
Packit 7e982e
\fBhandler-filename\fP \fBlock\fP\fI|\fP\fBunlock\fP \fI[\fP\fBflag ...\fP\fI]\fP
Packit 7e982e
Packit 7e982e
Where \fBhandler-filename\fP is a name of the executable to be run, \fBlock\fP or
Packit 7e982e
\fBunlock\fP specifies on which event it should be run, and flags specify how
Packit 7e982e
should pam_console call it.
Packit 7e982e
Packit 7e982e
Additionally there should be a line which specifies glob patterns of console devices.
Packit 7e982e
Packit 7e982e
The format of this line is:
Packit 7e982e
\fBconsole-name\fP \fBconsoledevs\fP \fBregex\fP \fI[\fP\fBregex ...\fP\fI]\fP
Packit 7e982e
Packit 7e982e
Where \fBconsole-name\fP is a name of the console class - currently ignored - and
Packit 7e982e
regexes are regular expression patterns which specify the name of the tty device.
Packit 7e982e
Only the first such line is consulted.
Packit 7e982e
Packit 7e982e
.SH FLAGS
Packit 7e982e
.IP logfail
Packit 7e982e
The pam_console module should log error to the system log if the return value of the
Packit 7e982e
handler is not zero or if the handler can not be executed.
Packit 7e982e
.IP wait
Packit 7e982e
The pam_console should wait for the handler to exit before continuing.
Packit 7e982e
.IP setuid
Packit 7e982e
The handler should be executed with uid/gid of the user which obtained the
Packit 7e982e
console lock.
Packit 7e982e
.IP tty
Packit 7e982e
The handler will get a tty name as obtained from PAM as a parameter.
Packit 7e982e
.IP user
Packit 7e982e
The handler will get an user name as obtained from PAM as a parameter.
Packit 7e982e
.PP
Packit 7e982e
Anything else will be added directly as a parameter to the handler executable.
Packit 7e982e
.SH "SEE ALSO"
Packit 7e982e
.BR pam_console (8)
Packit 7e982e
.SH AUTHOR
Packit 7e982e
Tomas Mraz <tmraz@redhat.com>