You are not logged in.

#1 2013-06-05 14:17:50

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

[SOLVED]Fresh install can't login as user on tty:s

Fresh install on empty disk today. Can login as root AND can do; su - myUser. Can not login as regular user on tty (x server is not installed yet, hence no other loginmanager than systemd). It gives "Login incorrect".

myUser has /home/myUser.
polkit is installed and systemd status says it is loaded but inactive (dead) after reboot. (Can't copy and paste this). systemctl start polkit starts it and status becomes active, but still can't login myUser on tty. Tested tty 1-3. Polkit isn't auto started by systemd.
dbus is started.
myUser was created as per the wiki and it is in /etc/passwd.
fstab looks ok, with 4 partitions all mounted rw .(boot,root, swap, home)
journalctl -xn says: failed login from tty1 for myUser.

With su -c myUser I can use sudo and run pacman ok. 3 hours of google has given nothing so far, a side from the above. What can it be?

Last edited by swanson (2013-06-05 21:24:39)

Offline

#2 2013-06-05 14:21:07

ubunchu
Member
Registered: 2012-05-01
Posts: 181

Re: [SOLVED]Fresh install can't login as user on tty:s

Well... I'm not sure about the tty problem, but if you can access pacman, you could install xorg, and a Desktop Manager and get into action.
Also, we're assuming that you have configured properly the "root" user and the "myUser" user, with passwords and everything.


Don't forget to mark as [SOLVED].

Offline

#3 2013-06-05 14:26:26

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: [SOLVED]Fresh install can't login as user on tty:s

Yes, both root and myUser seems to work ok otherwise. I have installed x and nvidia just now and x started with its ugly gray windows. I will try and move on to openbox and some panel. In the long run though, login as regular user is needed.

Offline

#4 2013-06-05 14:45:52

beyama
Member
Registered: 2013-06-05
Posts: 1

Re: [SOLVED]Fresh install can't login as user on tty:s

I had the same problem yesterday with /bin/zsh as my default shell. I've fixed it by changing my default shell to /usr/bin/zsh.

Offline

#5 2013-06-05 15:05:06

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: [SOLVED]Fresh install can't login as user on tty:s

I have bash as default shell - /usr/bin/bash.

But low and behold, systemd autologin worked to tty1! Link: https://wiki.archlinux.org/index.php/Au … _autologin

Go figure ...

Offline

#6 2013-06-05 15:23:23

djgera
Developer
From: Buenos Aires - Argentina
Registered: 2008-12-24
Posts: 723
Website

Re: [SOLVED]Fresh install can't login as user on tty:s

shells @ /etc/passwd should match /etc/shells otherwise they are invalid

Offline

#7 2013-06-05 17:28:46

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: [SOLVED]Fresh install can't login as user on tty:s

They did'nt. which gave /usr/bin/bash, same as in passwd. /etc/shell had /bin/bash. I'll report if it's any success.

Offline

#8 2013-06-05 17:35:47

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: [SOLVED]Fresh install can't login as user on tty:s

That may well have been it! Seems I can login tty as regular user now. Thanks!


SOLVED! Check /etc/passwd and /etc/shells for all users, including root, that the paths to the binary for the shell are the same.

Last edited by swanson (2013-06-05 21:24:07)

Offline

#9 2013-07-01 04:36:22

Dave Cohen
Member
Registered: 2008-09-27
Posts: 126

Re: [SOLVED]Fresh install can't login as user on tty:s

Glad I found this post as I think it describes my problem with a fresh install.  I created a user with shell /bin/zsh.  That used to work, but now I guess it must be /usr/bin/zsh.

That's the problem, but what is the solution?  I'm trying this, and getting an error.

dave@archX1C ~ % chsh -s $(which zsh)                                                                                                                                                                                                                                 
chsh: your shell is not in /etc/shells, shell change denied: Permission denied

Offline

#10 2013-07-01 04:42:23

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,574

Re: [SOLVED]Fresh install can't login as user on tty:s

Simplest solution is to just add /bin/zsh to /etc/shells.

Offline

#11 2013-07-01 09:50:24

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

Re: [SOLVED]Fresh install can't login as user on tty:s

Offline

#12 2013-07-02 14:30:50

Dave Cohen
Member
Registered: 2008-09-27
Posts: 126

Re: [SOLVED]Fresh install can't login as user on tty:s

I also found that while logged in as dave, I could not change my own shell.  However when logged in as root, I ran `chsh dave` and it allowed me to make the change.

Thanks for the help.

Offline

Board footer

Powered by FluxBB