Debian Codegraph @

upstream/opensuse-tumbleweed/man8/pam_time.8

raw
1 '\" t
2 .\" Title: pam_time
3 .\" Author: [see the "AUTHOR" section]
4 .\" Generator: DocBook XSL Stylesheets v1.79.2 <http://docbook.sf.net/>
5 .\" Date: 05/26/2026
6 .\" Manual: Linux-PAM Manual
7 .\" Source: Linux-PAM
8 .\" Language: English
9 .\"
10 .TH "PAM_TIME" "8" "05/26/2026" "Linux\-PAM" "Linux\-PAM Manual"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 .ie \n(.g .ds Aq \(aq
19 .el .ds Aq '
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
24 .nh
25 .\" disable justification (adjust text to left margin only)
26 .ad l
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
30 .SH "NAME"
31 pam_time \- PAM module for time control access
32 .SH "SYNOPSIS"
33 .HP \w'\fBpam_time\&.so\fR\ 'u
34 \fBpam_time\&.so\fR [conffile=conf\-file] [debug] [noaudit]
35 .SH "DESCRIPTION"
36 .PP
37 The pam_time PAM module does not authenticate the user, but instead it restricts access to a system and or specific applications at various times of the day and on specific days or over various terminal lines\&. This module can be configured to deny access to (individual) users based on their name, the time of day, the day of week, the service they are applying for and their terminal from which they are making their request\&.
38 .PP
39 By default rules for time/port access are taken from config file
40 /etc/security/time\&.conf\&. An alternative file can be specified with the
41 \fIconffile\fR
42 option\&.
43 .PP
44 If there is no explicitly specified configuration file and
45 /etc/security/time\&.conf
46 does not exist,
47 /usr/etc/security/time\&.conf
48 is used\&.
49 .PP
50 If Linux PAM is compiled with audit support the module will report when it denies access\&.
51 .SH "OPTIONS"
52 .PP
53 conffile=/path/to/time\&.conf
54 .RS 4
55 Indicate an alternative time\&.conf style configuration file to override the default\&.
56 .RE
57 .PP
58 debug
59 .RS 4
60 Some debug information is printed with
61 \fBsyslog\fR(3)\&.
62 .RE
63 .PP
64 noaudit
65 .RS 4
66 Do not report logins at disallowed time to the audit subsystem\&.
67 .RE
68 .SH "MODULE TYPES PROVIDED"
69 .PP
70 Only the
71 \fBaccount\fR
72 type is provided\&.
73 .SH "RETURN VALUES"
74 .PP
75 PAM_SUCCESS
76 .RS 4
77 Access was granted\&.
78 .RE
79 .PP
80 PAM_ABORT
81 .RS 4
82 Not all relevant data could be gotten\&.
83 .RE
84 .PP
85 PAM_BUF_ERR
86 .RS 4
87 Memory buffer error\&.
88 .RE
89 .PP
90 PAM_PERM_DENIED
91 .RS 4
92 Access was not granted\&.
93 .RE
94 .PP
95 PAM_USER_UNKNOWN
96 .RS 4
97 The user is not known to the system\&.
98 .RE
99 .SH "FILES"
100 .PP
101 /etc/security/time\&.conf
102 .RS 4
103 Default configuration file
104 .RE
105 .SH "EXAMPLES"
106 .sp
107 .if n \{\
108 .RS 4
109 .\}
110 .nf
111 #%PAM\-1\&.0
112 #
113 # apply pam_time accounting to login requests
114 #
115 login account required pam_time\&.so
116
117 .fi
118 .if n \{\
119 .RE
120 .\}
121 .SH "SEE ALSO"
122 .PP
123 \fBtime.conf\fR(5),
124 \fBpam.d\fR(5),
125 \fBpam\fR(8)\&.
126 .SH "AUTHOR"
127 .PP
128 pam_time was written by Andrew G\&. Morgan <morgan@kernel\&.org>\&.