Fedora Linux default pam_motd configuration don’t show content of motd_dir at starting session (except for ssh)

Okay, I have some progress here. By default, pam_motd on Fedora Linux is configured to start only for ssh logins (see /etc/pam.d/sshd and /etc/pam.d/login). However, by default the message of motd file (while motd_dir is not) is displayed at TTY login. Well, I tried to configure the login as intended by pam (i.e. /etc/pam.d/login). After that, the pam_motd.so pam module displays the motd file and the motd_dir directory correctly. However, then the login looks like this:

fedora login: user
Passwrod: 
content of motd file
content of motd_dir files
Last login: Tue Nov 1 bla bla
content of motd file

The clip printed before the last log entry is from pam_motd. The latter is apparently some other program that reads and prints the motd file. What program does this? Why doesn’t Fedora Linux use pam_motd? This is confusing and stypid…


This comment is moved from here.