Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8093

Raspberry Pi OS • Re: Removing ssh default password warning

$
0
0
I haven't tested this, but what is the result of editing /etc/pam.d/common-session and commenting out the line that calls pam_chksshpwd.so?

Code:

root@pi500:~# cat /etc/profile.d/sshpwd.shexport TEXTDOMAIN=Linux-PAM. gettext.shif [ -e /run/sshwarn ] ; then    echo        echo $(/usr/bin/gettext "SSH is enabled and the default password for the 'pi' user has not been changed.")        echo $(/usr/bin/gettext "This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.")        echofi
it looks to just be checking for /run/sshwarn, which doesnt exist on my machine
but /run is a tmpfs, so something must be creating that on every boot

and its /etc/xdg/lxsession/LXDE-pi/sshpwd.sh and/or /usr/bin/pprompt.sh that deals with the graphical warning

but i cant track down what creates /run/sshwarn

Statistics: Posted by cleverca22 — Sun Jun 15, 2025 4:20 am



Viewing all articles
Browse latest Browse all 8093

Trending Articles