LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

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 is a PAM module that displays the "message of the day" to users upon login. By default it shows the contents of /etc/motd. It can also run executable scripts in a motd directory (e.g., /etc/update-motd.d/) to generate dynamic messages showing system information, security updates, or custom notices.The module is configured in PAM service files (typically /etc/pam.d/login or /etc/pam.d/sshd) as a session module. It is always marked optional so that login succeeds even if the MOTD cannot be displayed.

PARAMETERS

motd=FILE

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

CAVEATS

Scripts in motd_dir run as root during login, so they must be carefully audited. Long-running scripts will delay the login process. The noupdate option prevents script execution but still displays static MOTD files.

SEE ALSO

pam(8), motd(5)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid