You are not logged in.
Pages: 1
Hello,
My computer suspended normally last night, but today there are issues with logging in.
I use LightDM for the login management and usually there is a a default entry for my user.
Today there wasn't. I changed "greeter-hide-users" to false, logged in as root, to see if that would change anything. It didn't.
It only shows the "Other..." option in the drop down and when I put in the correct credentials it doesn't output anything.
If I had to guess, I'd think my /etc/ files got corrupted, but I'm not knowledgeable enough to diagnose that.
Any help would be appreciated.
Last edited by DudeMan123 (2017-06-26 15:02:01)
Offline
grep <your username> /etc/passwdEnsure your home directory and your private data is still there ...
Offline
grep <your username> /etc/passwdEnsure your home directory and your private data is still there ...
Output
alexander:x:1000:1000::/home/alexander:/bin/zshForgot to add that everything is still there. Home directory is unaffected.
Offline
First, is there any real evidence for your /etc/ corruption suspicion? Are there symptoms beyond the DM failing?
Specifically, can you log into a tty with your user?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
First, is there any real evidence for your /etc/ corruption suspicion? Are there symptoms beyond the DM failing?
Only speculation. None that I know of.
Specifically, can you log into a tty with your user?
No. I get:
Login IncorrectI'm able to change the password in root, but the same credentials return the above.
Offline
If it's not just a bug in lightdm, your user might be deactivated?
passwd -S alexanderOffline
If it's not just a bug in lightdm, your user might be deactivated?
passwd -S alexander
Output:
alexander P 06/26/2017 0 99999 7 -1Offline
So I've figured it out.
My /etc/passwd has:
alexander:x:1000:1000::/home/alexander:/bin/zshbut it fails because I removed Z shell and didn't update the file.
Changing it to the regular:
alexander:x:1000:1000::/home/alexander:/bin/bashsolved the issue.
Thank you anyway for working with me.
Last edited by DudeMan123 (2017-06-26 15:02:27)
Offline
Changing it to the regular:
alexander:x:1000:1000::/home/alexander:/bin/bash
Glad you got this solved. I hope you used "chsh" to change the shell to bash, and did not edit /etc/passwd directly.
https://wiki.archlinux.org/index.php/Co … ault_shell
Offline
Glad you got this solved. I hope you used "chsh" to change the shell to bash, and did not edit /etc/passwd directly.
https://wiki.archlinux.org/index.php/Co … ault_shell
It doesn't matter which method is used, all chsh does is edit the /etc/passwd file. The result is the same either way.
Offline
It doesn't matter which method is used, all chsh does is edit the /etc/passwd file. The result is the same either way.
You're right, but editing /etc/passwd directly is a good way to break your system if you are not careful. chsh exists for a reason.
Last edited by 2ManyDogs (2017-06-26 16:05:01)
Offline
Cheers for the tips.
In my case it was already broken, but I could see how a misplaced char could screw it up even more.
Offline
Pages: 1