blob: e3192beb9dfa3e7460f04a6442ba0dc5cff20099 (
plain)
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
|
pam_issue — PAM module to add issue file to user prompt
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DESCRIPTION
pam_issue is a PAM module to prepend an issue file to the username prompt. It
also by default parses escape codes in the issue file similar to some common
getty's (using \x format).
Recognized escapes:
\d
current day
\l
name of this tty
\m
machine architecture (uname -m)
\n
machine's network node hostname (uname -n)
\o
domain name of this system
\r
release number of operating system (uname -r)
\t
current time
\s
operating system name (uname -s)
\u
number of users currently logged in
\U
same as \u except it is suffixed with "user" or "users" (eg. "1 user" or
"10 users")
\v
operating system version and build date (uname -v)
OPTIONS
noesc
Turns off escape code parsing.
issue=issue-file-name
The file to output if not using the default.
EXAMPLES
Add the following line to /etc/pam.d/login to set the user specific issue at
login:
auth optional pam_issue.so issue=/etc/issue
AUTHOR
pam_issue was written by Ben Collins <bcollins@debian.org>.
|