-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hi there,
I was into looking deeper into making the motd more dynamic. For example trying to show into the motd when the fsck will be run after the next reboot. With the actual available versions of libpam-modules this seems to be a big hassle. Am 01.04.14 um 13:23 schrieb Till Maas: > This is not a clean design and badly documented. Therefore I > propose the following changes: > > 1) Make the motd init script use /etc/update-motd.d and the uname > command to a script there > > 2) Fix pam_motd.so to update the motd file given in the motd > option instead of always /var/run/motd > > 3) Change the sshd pam config to: > > session optional pam_motd.so motd=/run/motd.dynamic session > optional pam_motd.so noupdate > > -> This will first show the dynamic motd and update it if required. > Then it will show /etc/motd, that can contain static contents. Ubuntu seems to have libpam-modules heavily patched, but has also some code which maybe could be adopted: http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/vivid/pam/vivid/view/head:/debian/patches-applied/update-motd I would also very welcome the proposed changes by Till. Many thanks, Jan. - -- Never write mail to <w...@spamfalle.info>, you have been warned! - -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GIT d-- s+: a C+++ UL++++ P+ L+++ E--- W+++ N+++ o++ K++ w--- O M V- PS PE Y++ PGP++ t-- 5 X R tv- b+ DI D+ G++ e++ h---- r+++ y++++ - ------END GEEK CODE BLOCK------ -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJU2huWAAoJEAxwVXtaBlE+Lp0P/R+4gRC3N1DB1AYKo76zGxw1 /7rlza5jZ8CR5cpm7bHHmyhxn88jFiIjVAhVMNKOHcBOJ9N3sPqJCDQGxRSPqe8Q BZjwFOA45tYEFCbAYt+DN4xizdNfCnqgmHe36Fs41pbdHg1Pc4en9G/bn3PGsiS4 qi5dHvAiBQAflyRgBDyIdS3fySCbZ8ptjWba7zfyzOrfKFSYuNvtAzw2RNBt8udT lQbpcMoAXhmbj/jDV49yMhn60inxOLiK9OEuOqJ/p7EcZolW7a6nOIMoKSlqpCCn xRPmvGjv5uwb14k7y9x0tvzHq0Tl9+NdA1HsyGSPtghNNT5zacJybI6Y480BXH+X SliQYyEjUmt2WKlT8o1wECD6p1JjjcSh7oX8gxY/gbiUpVPRb/8/svMxJDZfctRe Y4RCbAU8SzIYUOehlAD+b2bVNU+W7Ar/F0rg5JArHMJ2jOlDzFHc/jSUAokVb6bT U2xKZ+XLhX46IxuIglFFMd5YTnPZ9k8pa/s/zAhAZgfcvciNo6QO6L0CeScby1UG I5TZCv4irStE4ylYjyl+B5H6zD/EV+1OOZ3GS24Hw9mR8XRIAMKJuVdlxaAa5Q56 xjHsIPYFhdctfBpXBqVYXNiYBYDPyhSY5EAUsQQCnMPj0EO9kGR3dh7V2aL/CrkK mlYjVqlvuFqASwjY4uI2 =PbCM -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org