New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error message when login is refused due to missing entry in /etc/shells #817
Comments
I faced the same, spend a whole day troubleshooting. I encourage someone to fix this |
Can you explain exactly how you were logging in? When I try this on my laptop, I don't see any "password incorrect" messages. If I simply, as root, do 'login test1', I get
su - test1 gives me:
|
Steps to reproduce: (in arch, gentoo at least)
|
I'm asking for specifics about "try to login". On text console (getty)? |
For instance, on ubuntu lunar container I get:
|
On funtoo, /etc/pam.d/system-login specifies pam_shells.so. With that enabled, I get
When I comment that out, I get
So please do check your pam configuration. |
Watch out. Arch Linux uses login from The easiest way to see which one you have is running If it's
If it's
|
this is related to #535
My system:
I just had a situation (documented here) where a missing
/usr/bin/bash
entry in/etc/shells/
prevented me from login in as a regular user. Only/bin/bash
was listed.That is absolutely fine thus far but the error message I got was something like "Your Password is incorrect ...".
This did not help finding the actual problem. And is not correct.
So I would suggest (unfortunately without having the capabilities to produce a PR) to return a more meaningful error like "Sorry, your login$SHELL is not listed in /etc/shells, which prevents you from logging in."
The text was updated successfully, but these errors were encountered: