You are not logged in.
Pages: 1
I've found in Ubuntu manual: http://manpages.ubuntu.com/manpages/bio … otd.5.html that files in
/etc/update-motd.d/
are executed by pam_motd on login. I assume that the same pam_motd is used in Arch, but in my case the files in the update-motd.d are not executed. Any ideas why? How to execute shell scripts to generate MOTD on each login?
Offline
I assume that the same pam_motd is used in Arch, but in my case the files in the update-motd.d are not executed.
see man 8 pam_motd
Offline
I've seen it. It basically says that pam_motd is only capable of displaying files - not executing scripts. So, is ubuntu using different pam_motd, or what is happening here?
Offline
ubuntu uses https://launchpad.net/ubuntu/+source/update-motd
Offline
Turns out ubuntu uses patched motd: https://wiki.debian.org/motd#How_to_scr … etc.2Fmotd and upstream PAM does not contain the patch with the dynamic motd. I will stick to the motd updated by cron job.
Offline
Pages: 1