What's the secret to seeing only one MOTD when logging in? I have /etc/motd that says what I want said. /etc/motd.d/ is empty. How do I stop it from being followed on the following line by the "Have a lot of fun..." openSUSE default? man motd seems to say if /etc/motd exists, no other should be used, but it's unclear to me. It seems to me if /etc/motd exists that /usr/lib/motd.d/* should be ignored. Is this a bug
On 18.01.2022 07:19, Felix Miata wrote:
What's the secret to seeing only one MOTD when logging in? I have /etc/motd that says what I want said. /etc/motd.d/ is empty. How do I stop it from being followed on the following line by the "Have a lot of fun..." openSUSE default?
touch /etc/motd.d/welcome
man motd seems to say if /etc/motd exists, no other should be used,
No, it does not say that.
but it's unclear to me. It seems to me if /etc/motd exists that /usr/lib/motd.d/* should be ignored. Is this a bug
Hi,
On Mon, Jan 17, Felix Miata wrote:
What's the secret to seeing only one MOTD when logging in? I have /etc/motd that says what I want said. /etc/motd.d/ is empty. How do I stop it from being followed on the following line by the "Have a lot of fun..." openSUSE default? man motd seems to say if /etc/motd exists, no other should be used, but it's unclear to me. It seems to me if /etc/motd exists that /usr/lib/motd.d/* should be ignored. Is this a bug
It sounds as if you did read the motd manual page, so why do you not follow the explanation in it how to disable messages coming from /usr/lib/motd.d/* ? There are two ways documented: overwriting single files from /usr/lib/motd.d/ or adjusing the pam_motd config...
There are even examples how to do that.
/etc/motd wins before /run/motd and /usr/lib/motd, it does not disable motd.d!
So please read the full manual page and don't stop at some random lines.
Thorsten