You are not logged in.

#1 2013-06-09 10:52:47

mrpringle
Member
Registered: 2009-07-11
Posts: 74

Cannot log in as regular user

Hi,
After merging a couple of changes from /etc/passwd /etc/shadow and /etc/gshadow I cannot log in to my regular user account.
I tried adding another user and was able to log in, so I could migrate all my date to a new account, but I would like to try and diagnose the problem. Luckily I can log into my root account.

I've tried (as root) modifying my user password:
passwd ablack

I got the message, password updated successfully, but I still cannot log in. I can't log in via a tty or slim. I just get the message Login incorrect.

I can log in from the root account using:
su -l ablack

What is going on?

Offline

#2 2013-06-09 11:04:40

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Cannot log in as regular user

Log in as root and try to log in as your user with 'su <your old username>'. Maybe the shell you're using is not present in /etc/shells.

Offline

#3 2013-06-09 11:05:34

mrpringle
Member
Registered: 2009-07-11
Posts: 74

Re: Cannot log in as regular user

yes, as I mentioned I can log in using su <user> from my root account

Offline

#4 2013-06-09 11:08:48

mrpringle
Member
Registered: 2009-07-11
Posts: 74

Re: Cannot log in as regular user

ok, you were right. I think at some stage I accidentally removed and reinstall zsh in which case I had /usr/bin/zsh in /etc/shells, but in my /etc/passwd my login was set to /bin/zsh

Changing the login to /usr/bin/zsh fixed this for me.

Thanks for your help!

Last edited by mrpringle (2013-06-09 11:09:01)

Offline

#5 2013-06-09 11:10:46

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Cannot log in as regular user

This may have not been your fault: https://bugs.archlinux.org/task/35724

Offline

Board footer

Powered by FluxBB