Welcome to the Power Users community on Codidact!
Power Users is a Q&A site for questions about the usage of computer software and hardware. We are still a small site and would like to grow, so please consider joining our community. We are looking forward to your questions and answers; they are the building blocks of a repository of knowledge we are building together.
Why do tty's log in even with a wrong password or none at all?
I have a Manjaro machine with mostly default programs in the background. I recently found out that when signing in to the other tty's (the ones you go to by pressing CTRL+ALT+F#), it logs in without a password, meaning I can put in whatever and it doesn't fail. How can I fix that or at least see where the problem is coming from?
I have configured PAM to use fprintd for the logins that I usually use. It works as expected on everything that I regularly use: SDDM, swaylock, sudo, ssh. However, in the tty's it just logs in without an issue.
I have also noticed that when logging in to the normal user which has fingerprints configured and tied to the user, it waits for the fingerprint device, but even when the fingerprint times out, it just logs in. The root user just logs in without waiting for anything.
1 answer
OK, I was messing with the configs and removing the fprintd lines
auth sufficient pam_unix.so try_first_pass likeauth nullok
auth sufficient pam_fprintd.so
And the offending file was the /etc/pam.d/system-local-login
. I removed those lines to have the vanilla authentication and it worked! However, I put the lines back and it also worked like before.
I guess if you have this same issue in the tty's, you can change that file to see what can be done. NOTE THAT YOU HAVE TO HAVE THE ROOT SESSION OPEN WHEN YOU CHANGE THESE FILES OR YOU WILL LOCK YOURSELF OUT.
0 comment threads