[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Script in update-motd.d wird nicht ausgeführt



Am 29.07.20 um 07:55 schrieb Marc Haber:
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:~ $
pam.d/login sieht bei mir exakt gleich aus.
Das Script heisst einfach "20-hostname" statt "30-hostname". Aber daran wirds ja wohl nicht liegen.

Grüsse
 Thomas



Reply to: