Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"When the going gets tough, the tough get empirical." -- Jon Carroll


computers / alt.os.linux.ubuntu / Infuriating double MOTD

SubjectAuthor
* Infuriating double MOTDJonathan N. Little
`- Re: Infuriating double MOTDJonathan N. Little

1
Infuriating double MOTD

<uteqlb$1h93q$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=3919&group=alt.os.linux.ubuntu#3919

  copy link   Newsgroups: alt.os.linux.ubuntu
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lws4art@gmail.com (Jonathan N. Little)
Newsgroups: alt.os.linux.ubuntu
Subject: Infuriating double MOTD
Date: Wed, 20 Mar 2024 10:08:41 -0400
Organization: LITTLE WORKS STUDIO
Lines: 16
Message-ID: <uteqlb$1h93q$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Mar 2024 14:08:43 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="7b3c165e20b6b663013ec01609885751";
logging-data="1614970"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+sy/IrFvuMxqrQUTAAUz6bM+xFSE05FnY="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Firefox/91.0 SeaMonkey/2.53.18.1
Cancel-Lock: sha1:hl4YDZeGTVlM9zAB6T2T5/2pZ5k=
X-Mozilla-News-Host: news://news.eternal-september.org:119
X-Face: o[H8T0h*NGH`K`P)s+4PmYlcy|GNl`~+L6Fi.m:%15m[c%{C7V-ump|WiCYPkQ+hFJhq;XW5^1Rg_El'"fE$~AcYW$Pq\yeh9K_-dJqlQ5\y2\;[yw5DYCtOtsf_.TUy}0U\oL^>[3Y#{AP2^o'bG`bwj`]]UNpCxY\(~xK9b+uZKxrb*4-rkD+
X-Dan: Yes Dan this is a Winbox
 by: Jonathan N. Little - Wed, 20 Mar 2024 14:08 UTC

I have just 2 servers that display the MOTD messages twice when either
logging in or when ssh in. One is running 20.04 and the other 22.04, but
I have others servers that do not do this.

Also comparing confs for often posted "remedies" I have found in forums:
/etc/pam.d/login, /etc/pam.d/sshd, and /etc/ssh/sshd_config and my
/etc/ssh/sshd_config.d/local.conf are identical for the servers that
double the MOTD to those that properly only display it once. PUZZLED

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

Re: Infuriating double MOTD

<utfcr5$1ll26$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=3920&group=alt.os.linux.ubuntu#3920

  copy link   Newsgroups: alt.os.linux.ubuntu
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lws4art@gmail.com (Jonathan N. Little)
Newsgroups: alt.os.linux.ubuntu
Subject: Re: Infuriating double MOTD
Date: Wed, 20 Mar 2024 15:18:59 -0400
Organization: LITTLE WORKS STUDIO
Lines: 31
Message-ID: <utfcr5$1ll26$1@dont-email.me>
References: <uteqlb$1h93q$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Mar 2024 19:19:01 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="7b3c165e20b6b663013ec01609885751";
logging-data="1758278"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+XSJpJBPQQxOUYGpQVEgOtEGGSNKJ6+XQ="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Firefox/91.0 SeaMonkey/2.53.18.1
Cancel-Lock: sha1:c3bNsZ8eXBUCN+CNI/OOkmWpFn4=
X-Dan: Yes Dan this is a Winbox
X-Face: o[H8T0h*NGH`K`P)s+4PmYlcy|GNl`~+L6Fi.m:%15m[c%{C7V-ump|WiCYPkQ+hFJhq;XW5^1Rg_El'"fE$~AcYW$Pq\yeh9K_-dJqlQ5\y2\;[yw5DYCtOtsf_.TUy}0U\oL^>[3Y#{AP2^o'bG`bwj`]]UNpCxY\(~xK9b+uZKxrb*4-rkD+
In-Reply-To: <uteqlb$1h93q$1@dont-email.me>
 by: Jonathan N. Little - Wed, 20 Mar 2024 19:18 UTC

Jonathan N. Little wrote:
> I have just 2 servers that display the MOTD messages twice when either
> logging in or when ssh in. One is running 20.04 and the other 22.04, but
> I have others servers that do not do this.
>
> Also comparing confs for often posted "remedies" I have found in forums:
> /etc/pam.d/login, /etc/pam.d/sshd, and /etc/ssh/sshd_config and my
> /etc/ssh/sshd_config.d/local.conf are identical for the servers that
> double the MOTD to those that properly only display it once. PUZZLED
>

I was able to replicate the *default* motd behavior on the two wayward
servers by editing both the /etc/pam.d/login and /etc/pam.d/sshd by
commented out the noupdate option as so:

# 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

The MOTD does update with each login, but now just displays once.
However I am unable to determine why this is necessary, since the other
servers require no such edit. If anyone can enlighten it would be welcomed.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor