You are not logged in.

#1 2023-05-29 16:08:48

Bigshizzle
Member
Registered: 2015-12-12
Posts: 7

[SOLVED] Can't log in to TTY as user, but sudo works

So I've suddenly run into this issue I believe after a pacman -Syu. I cannot log into any TTY as my (non-root) user - it simply says "Login incorrect".

  • I've done a

    faillock --reset

    already, so that's not the problem.

  • I actually deleted and recreated my user yesterday and was able to log in again, but upon turning my PC on today it stopped working again.

The strangest part about it is I have autologin setup on TTY1, which works, and from in that session I can use sudo and type in the same password and it works without issue. Google is not being particularly helpful here. Any ideas?

Last edited by Bigshizzle (2023-06-06 21:44:17)

Offline

#2 2023-05-29 19:57:02

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,244

Re: [SOLVED] Can't log in to TTY as user, but sudo works

faillock --list

Is your pasword qwerty-safe?

Offline

#3 2023-05-30 22:27:55

Bigshizzle
Member
Registered: 2015-12-12
Posts: 7

Re: [SOLVED] Can't log in to TTY as user, but sudo works

Not sure what you mean by qwerty safe. Also faillock doesn't have a --list option for me but i'm guessing this is what you were looking for.

[root@supreme supreme]# faillog -u supreme
Login       Failures Maximum Latest                   On

supreme         0        0   12/31/69 19:00:00 -0500  

Offline

#4 2023-05-31 05:33:04

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,244

Re: [SOLVED] Can't log in to TTY as user, but sudo works

Yes, sorry, local wrapper script I forgot about…

Assuming you're not using a QWERTY password, any key on your keyboard that doesn't align w/ QWERTY isn't "qwerty - safe"
Try to change it to eg. "12345" to rule out that the getty login uses the wrong keymap.

Offline

#5 2023-06-01 01:56:55

Bigshizzle
Member
Registered: 2015-12-12
Posts: 7

Re: [SOLVED] Can't log in to TTY as user, but sudo works

Yeah no dice, still doesn't work with 12345. I should note this also prevents me from sshing in as my user. But again, my password works with sudo when I'm already logged in.

Offline

#6 2023-06-01 06:03:34

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,244

Re: [SOLVED] Can't log in to TTY as user, but sudo works

sudo pacman -Qikk pambase

Offline

#7 2023-06-01 21:36:52

Bigshizzle
Member
Registered: 2015-12-12
Posts: 7

Re: [SOLVED] Can't log in to TTY as user, but sudo works

 ~  sudo pacman -Qikk pambase
Name            : pambase
Version         : 20221020-1
Description     : Base PAM configuration for services
Architecture    : any
URL             : https://www.archlinux.org
Licenses        : GPL
Groups          : None
Provides        : None
Depends On      : None
Optional Deps   : None
Required By     : pam
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 2.65 KiB
Packager        : David Runge <dvzrv@archlinux.org>
Build Date      : Thu 20 Oct 2022 05:57:24 AM EDT
Install Date    : Thu 01 Jun 2023 05:35:34 PM EDT
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

pambase: 8 total files, 0 altered files

Offline

#8 2023-06-02 06:08:35

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,244

Re: [SOLVED] Can't log in to TTY as user, but sudo works

So it's not PAM…
Did you deactivate the user?

password -S supreme

Offline

#9 2023-06-02 12:11:46

loqs
Member
Registered: 2014-03-06
Posts: 18,961

Re: [SOLVED] Can't log in to TTY as user, but sudo works

Anything in the journal indicating why the login is rejected?

Offline

#10 2023-06-03 02:19:12

Bigshizzle
Member
Registered: 2015-12-12
Posts: 7

Re: [SOLVED] Can't log in to TTY as user, but sudo works

I don't have a password command. And only things of interest in journalctl are this:

Jun 02 22:17:59 supreme login[1397]: FAILED LOGIN 1 FROM tty2 FOR supreme, Authentication failure
Jun 02 22:17:56 supreme login[1397]: pam_systemd_home(login:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.

Offline

#11 2023-06-03 06:04:46

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,244

Re: [SOLVED] Can't log in to TTY as user, but sudo works

"passwd", sorry

Edit: homed is spam, but please post at least the context around the auth failure.

Last edited by seth (2023-06-03 06:05:30)

Offline

#12 2023-06-03 19:42:38

Bigshizzle
Member
Registered: 2015-12-12
Posts: 7

Re: [SOLVED] Can't log in to TTY as user, but sudo works

 ~  passwd -S supreme
supreme P 2023-06-01 0 99999 7 -1

There was no other (relevant) context around the auth failure - the only things following it is bluetooth related things

Offline

#13 2023-06-03 19:57:23

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,244

Re: [SOLVED] Can't log in to TTY as user, but sudo works

You'd look more ahead of that line…

Also maybe interesting what the ssh failure logs.
And can you still login as a different user (root) or are you completely down to the autologin?

grep supreme /etc/passwd # despite the name this does not contain any passwords
cat /etc/shells

Offline

#14 2023-06-03 20:00:23

loqs
Member
Registered: 2014-03-06
Posts: 18,961

Re: [SOLVED] Can't log in to TTY as user, but sudo works

So the only pam module printing anything is pam_systemd_home?  Nothing like the following?

login[378222]: pam_systemd_home(login:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
login[378222]: pam_unix(login:session): session opened for user loqs(uid=1000) by LOGIN(uid=0)
systemd-logind[1023]: New session c2 of user loqs.
systemd[1]: Started Session c2 of User loqs.
login[378222]: LOGIN ON tty2 BY loqs

Offline

#15 2023-06-03 20:21:13

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,244

Re: [SOLVED] Can't log in to TTY as user, but sudo works

If there was a coredump I'd guess https://bbs.archlinux.org/viewtopic.php … 5#p2098775

Offline

#16 2023-06-06 21:44:03

Bigshizzle
Member
Registered: 2015-12-12
Posts: 7

Re: [SOLVED] Can't log in to TTY as user, but sudo works

Oh wow - /etc/shells was the clue. zsh was missing from it. Once I added it I was finally able to log in to TTYs again. I might've overwritten it when I was going over my pacnew files. I just reinstalled zsh to make sure it was added properly and everything works again. Thanks!

Offline

Board footer

Powered by FluxBB