Re: Script in update-motd.d wird nicht ausgeführt
On Wed, 29 Jul 2020 00:30:52 +0200, Thomas Schöpfer <list@tmx.ch>
wrote:
>Welchen Schalter muss ich stellen, damit die Scripte in
>/etc/update-motd.d/ ausgeführt werden und die motd updaten?
>Debian Version ist 10.4, neu installiert.
>Ich glaube mich zu erinnern, dass das früher einfach funktioniert hat,
>wenn man ein ausführbares Script da reingepackt hat.
Also bei mir tut das einfach:
| -1 [1/4989]mh@torres:~ $ ls -la /etc/update-motd.d/
|total 40K
|drwxr-xr-x 2 root root 4,0K Mai 9 20:09 ./
|drwxr-xr-x 111 root root 12K Jul 20 11:44 ../
|-rwxr-xr-x 1 root root 989 Apr 18 19:09 30-hostname*
|-rwxr-xr-x 1 root root 87 Apr 12 12:39 40-net-modshow*
|-rwxr-xr-x 1 root root 156 Dez 15 2019 70-ansible*
|-rwxr-xr-x 1 root root 62 Jan 14 2020 75-contact*
|-rwxr-xr-x 1 root root 1,6K Dez 15 2019 80-changelog*
|-rwxr-xr-x 1 root root 148 Dez 15 2019 99-end*
|[2/4990]mh@torres:~ $
der pam-Eintrag ist:
|[4/4992]mh@torres:~ $ grep motd /etc/pam.d/login
|# This includes a dynamically generated part from /run/motd.dynamic
|# and a static (admin-editable) part from /etc/motd.
|session optional pam_motd.so motd=/run/motd.dynamic
|session optional pam_motd.so noupdate
|[5/4993]mh@torres:~ $
Grüße
Marc
--
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber | " Questions are the | Mailadresse im Header
Mannheim, Germany | Beginning of Wisdom " |
Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 621 72739834
Reply to: