1PAM_MOTD(8)                    Linux-PAM Manual                    PAM_MOTD(8)
2
3
4

NAME

6       pam_motd - Display the motd file
7

SYNOPSIS

9       pam_motd.so [motd=/path/filename]
10

DESCRIPTION

12       pam_motd is a PAM module that can be used to display arbitrary motd
13       (message of the day) files after a successful login. By default the
14       /etc/motd file is shown. The message size is limited to 64KB.
15

OPTIONS

17       motd=/path/filename
18           The /path/filename file is displayed as message of the day.
19
20       motd_dir=/path/dirname.d
21           The /path/dirname.d directory is scanned and each file contained
22           inside of it is displayed.
23
24       When no options are given, the default is to display both /etc/motd and
25       the contents of /etc/motd.d. Specifying either option (or both) will
26       disable this default behavior.
27

MODULE TYPES PROVIDED

29       Only the session module type is provided.
30

RETURN VALUES

32       PAM_IGNORE
33           This is the only return value of this module.
34

EXAMPLES

36       The suggested usage for /etc/pam.d/login is:
37
38           session  optional  pam_motd.so
39
40
41       To use a motd file from a different location:
42
43           session  optional  pam_motd.so motd=/elsewhere/motd
44
45
46       To use a motd file from elsewhere, along with a corresponding .d
47       directory:
48
49           session  optional  pam_motd.so motd=/elsewhere/motd motd_dir=/elsewhere/motd.d
50
51
52

SEE ALSO

54       motd(5), pam.conf(5), pam.d(5), pam(8)
55

AUTHOR

57       pam_motd was written by Ben Collins <bcollins@debian.org>.
58
59       The motd_dir= option was added by Allison Karlitskaya
60       <allison.karlitskaya@redhat.com>.
61
62
63
64Linux-PAM Manual                  05/18/2018                       PAM_MOTD(8)
Impressum