Open joeySeal opened 3 years ago
Maybe UsePAM yes
in sshd_config
? Apart from that I have no idea.
I found solutions after hours of trying😅 Hope works for you too
with update-motd it works anyway. But not when logging in
my case: On ubuntu, lolcat is installed in /usr/games/lolcat Apparently there are restrictions for this folder. So I just moved lolcat to /usr/bin/ and it worked
You haven’t installed lolcat in games but try it anyway
if it worked I’ll create pull request for read me , so other user won’t have to try
My lolcat is under /usr/games/lolcat
(Ubuntu 20.04), works for me.
Okay strange 😅 I tried almost everything else 🙈
do you work as root or not?
update-motd scripts should be executed as root, there are a few scripts that need root access. The one using lolcat
should also work as non-root.
By default root doesn't has /usr/games/
in the $PATH
. So it kinda makes sense that update-motd can't execute that. I had the same issue and also solved it by moving lolcat to /usr/bin/
I am not sure how it is with the installation with snap but I would imagine that there is a similar problem. I can only advise against using snap anyway....
Just wanted to add I had the same issue and moving from /usr/games/
to /usr/bin/
fixed it!
Just wanted to add I had the same issue and moving from
/usr/games/
to/usr/bin/
fixed it!
Helped me as well. Thanks!
Running ubuntu 20.04 server, all required packages are install, script files have the same permissions as the default scripts, sshd has printmotd set to yes. Any advice?