LinuxCommandLibrary

pam_motd

displays message of the day

TLDR

Display message of the day

$ session optional pam_motd.so
copy
Custom motd location
$ session optional pam_motd.so motd=/etc/custom_motd
copy
Multiple motd files
$ session optional pam_motd.so motd_dir=/etc/motd.d
copy
Disable for non-login shells
$ session optional pam_motd.so noupdate
copy

SYNOPSIS

pam_motd.so [options]

DESCRIPTION

pam_motd displays message of the day. Shows /etc/motd on login.
The module presents login messages. Supports dynamic MOTD generation.

PARAMETERS

motd=FILE

MOTD file path.
motd_dir=DIR
Directory with MOTD files.
noupdate
Don't run motd scripts.

CAVEATS

Session module. Can run scripts. Multiple file support.

HISTORY

pam_motd displays the message of the day for login sessions.

SEE ALSO

pam(8), motd(5), update-motd(5)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community