Hello Edgar,
Stephen already answered some bits, here's the other one:
Edgar Hoch [2018-06-14 22:01 -0000]:
- Why should a normal user see a message like
"Activate the web console with: systemctl enable --now cockpit.socket" ?
A normal user cannot do that!
A normal user can access the Cockpit UI once it's enabled, though. But I'm
afraid that pam_motd doesn't make the distinction between admin and user.
But an administrator doesn't need this message - he / she knows
systemctl
command and / or can read the documentation!
The point is less about teaching systemd, but to point out that a web console
(Cockpit) exists, and which unit to enable.
There should be at least a configuration option if cockpit-ws
generates this
message! The default should be off - because administrators should be able
to install the same list of packages on many different hosts (workstations,
servers, notebooks, virtual machines, etc.) but run different services and
use cases on them.
Default off would be completely meaningless, then we wouldn't need to show it
at all. People who know about cockpit.socket don't need to be told that it
exists.
Now I need to uninstall cockpit-ws to get rid of this cockpit
messages!
I cannot even disable cockpit-motd.service because it is static! Thats very bad!
No, you just need to remove /etc/motd.d/cockpit, that's sufficient and
persistent.
Martin