"Expanded Security Maintenance for Applications" shown every time I log on!
Jeffrey Walton
noloader at gmail.com
Fri Mar 10 07:20:32 UTC 2023
On Fri, Mar 10, 2023 at 1:41 AM Bo Berglund <bo.berglund at gmail.com> wrote:
>
> On Thu, 9 Mar 2023 16:09:39 -0600, Keith <keithw at caramail.com> wrote:
>
> >> How can I get rid of this message and speed up the logon?
> >>
> >> I do *not* need any extra functionality and there are no humans logged on except
> >> occationally when I am doing maintenance via SSH.
> >
> >The motd is dynamically generated from scripts in the
> >/etc/update-motd.d/ directory. To turn off motd completely, edit
> >/etc/pam.d/login and comment out the line, "session optional
> >pam_motd.so motd=/run/motd.dynamic". Or, you can change the motd back to
> >a static, admin-controlled file by setting motd=/etc/motd and creating
> >your own motd file in /etc.
>
> I looked inside and I don't get much of it...
>
> I would not like to completely ditch the greeting message but rather get rid of
> the commercial for this "Expanded Security" subscription, and the long delay
> after entering my user credentials until the start screen appears.
>
> It was working fine until this stuff appeared...
Try to locate the script or file that is responsible for the message,
and remove the execute bit. That's how to disable individual pieces of
those login messages.
$ sudo find /etc -name '*motd*'
/etc/default/motd-news.wasremoved
/etc/update-motd.d
/etc/update-motd.d/50-motd-news
/etc/systemd/system/timers.target.wants/motd-news.timer
# No execute, it does not contribute to the message
$ ls -Al /etc/default/motd-news.wasremoved
-rw-r--r-- 1 root root 0 Aug 25 2022 /etc/default/motd-news.wasremoved
# Execute, it does contribute to the message
$ ls -Al /etc/update-motd.d/50-motd-news
-rwxr-xr-x 1 root root 5023 Aug 17 2020 /etc/update-motd.d/50-motd-news
I don't receive the message, so I am not sure which file or script to disable.
Jeff
More information about the ubuntu-users
mailing list