You are not logged in.

#1 2013-07-09 09:17:14

dext
Member
From: Poland, Kraków
Registered: 2008-02-01
Posts: 98

Can't login using login or ssh

I've just made fresh Arch installation. I can login as root with no problems, but "login" and ssh are not working for normal users. Password is OK, because I can "su" from one normal user to another.

I've found out the problem while I was writing this post, but it is still not right and strange. Changing default shell from /bin/zsh to /bin/bash is the solution. But why?

cat /etc/passwd | grep dext
dext:x:1000:100::/home/dext:/bin/zsh

(And yes, zsh is there and works great)

cat /etc/group | grep users
users:x:100:
journalctl | grep login | grep dext
Jul 08 16:28:09 statsrv login[341]: FAILED LOGIN 1 FROM tty2 FOR dext, Authentication failure
journalctl | grep ssh | grep dext
Jul 09 12:52:03 statsrv sshd[1085]: Failed password for dext from 192.168.7.10 port 43431 ssh2

Last edited by dext (2013-07-09 09:24:42)

Offline

#2 2013-07-09 11:26:07

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

Re: Can't login using login or ssh

Offline

#3 2013-07-09 11:43:08

dext
Member
From: Poland, Kraków
Registered: 2008-02-01
Posts: 98

Re: Can't login using login or ssh

That's it, thank you!

What's strange, 3 weeks ago I've used the same ISO for other installation and /etc/shells are identical. The difference is architecture. The problem occurred on 32 bit.

Offline

#4 2013-07-09 11:51:25

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

Re: Can't login using login or ssh

I don't see how a different architecture could change anything here.
You're trying to use a shell that's not listed in /etc/shells : /bin/zsh instead of /usr/bin/zsh. You shoudl get an error no matter the architecture.

Offline

#5 2013-07-11 02:18:16

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,137

Re: Can't login using login or ssh

It doesn't matter that you used the same iso - the install will be different because it will use the latest packages from the net. If you haven't updated the other installation, you may therefore very well have different default configuration files.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB