You are not logged in.

#1 2020-11-24 13:57:49

salem2k
Member
Registered: 2020-11-24
Posts: 9

Can't login after upgrade

Hey guys,

I just finished setting up Arch, installed lightdm and xfce4 etc. did a -Syyu and now I can't login to any user caus it says 'incorrect password'.

Naturally I googled the issue and tried multiple things, but I neither got any tally lines in my system-login file nor any .pacnew files in my pam.d directory.

If someone could help me that would be great. smile

Thanks in advance!

Offline

#2 2020-11-24 14:04:34

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,515
Website

Re: Can't login after upgrade

Which tutorial did you follow to install the system?

Were you able to log in to the installed system before installing lightdm?  Can you log in as root?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2020-11-24 14:07:56

salem2k
Member
Registered: 2020-11-24
Posts: 9

Re: Can't login after upgrade

Trilby wrote:

Which tutorial did you follow to install the system?

Were you able to log in to the installed system before installing lightdm?  Can you log in as root?

I used the standard Arch guide + a guide from a german youtuber.
Yes I was able to login befor installing lightdm and doing the -Syyu.
And yes I'm currently chrooted via the installation iso, but I'm not able to login as root via terminal or lightdm neither.

Last edited by salem2k (2020-11-24 14:08:39)

Offline

#4 2020-11-24 14:47:59

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

Offline

#5 2020-11-24 15:01:01

salem2k
Member
Registered: 2020-11-24
Posts: 9

Re: Can't login after upgrade

sadly none of that worked ...

Offline

#6 2020-11-24 15:18:51

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Can't login after upgrade

What's in the log (journal) for the failed login attempts?

Offline

#7 2020-11-24 15:43:12

salem2k
Member
Registered: 2020-11-24
Posts: 9

Re: Can't login after upgrade

Scimmia wrote:

What's in the log (journal) for the failed login attempts?

so it says:
pam_unix(lightdm:auth): authentication failure; logname= uid=0 euid=0 tty=:0 ruser= rhost user=salem

and also there is:

pam_systemd_home(lightdm:auth): systemd_homed is not available: Unit dbus-org.freedesktop.home1.service not found.

Offline

#8 2020-11-24 16:08:07

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

Re: Can't login after upgrade

The systemd_homed message is irrelevant, is there no context to pam_unix?

Are you sure the password is ok (esp. if it contains non-ascii or non-qwerty chars)?

Offline

#9 2020-11-24 16:17:22

salem2k
Member
Registered: 2020-11-24
Posts: 9

Re: Can't login after upgrade

seth wrote:

The systemd_homed message is irrelevant, is there no context to pam_unix?

Are you sure the password is ok (esp. if it contains non-ascii or non-qwerty chars)?

Password is ok, all ascii.
i've got:
PAM _pam_load_conf_file: unable to open config for system-login

and:
pam_warn(login:auth): function=[pam_sm_authenticate] flags=0 service=[login] terminal=[tty2] user=[<unknown>] ruser=[<unknown>] rhost=[<unknown>]
followed by the "FAILED LOGIN ... FROM:" logs

Offline

#10 2020-11-24 16:37:05

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

Re: Can't login after upgrade

Please post the journal (see first link in my signature), not some excerpts.

Also check /etc/shadow and test whether the password is actually correct.
The entry is something like

salem:$6$<salt>$<hash>:12345:0:99999:7:::

and you can replicate the <hash> with

openssl passwd -6 -salt "<salt>" "your_password_here"

The first number could also but should not be 1 or 5 - then pass that.

Last edited by seth (2020-11-24 16:37:38)

Offline

#11 2020-11-24 16:45:33

salem2k
Member
Registered: 2020-11-24
Posts: 9

Re: Can't login after upgrade

seth wrote:

Please post the journal (see first link in my signature), not some excerpts.

Also check /etc/shadow and test whether the password is actually correct.
The entry is something like

salem:$6$<salt>$<hash>:12345:0:99999:7:::

and you can replicate the <hash> with

openssl passwd -6 -salt "<salt>" "your_password_here"

The first number could also but should not be 1 or 5 - then pass that.

so the hashes of the password match.

how do i extract the journal? cause arch is installed on my laptop.

Offline

#12 2020-11-24 16:50:40

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

Re: Can't login after upgrade

https://wiki.archlinux.org/index.php/Sy … al_to_view
What journal have you been looking at so far??

Edit: "sudo journalctl -b -1", NOT "-xe" (latter produces useless clutter on a shortened log…)

Last edited by seth (2020-11-24 16:51:36)

Offline

#13 2020-11-24 17:12:18

salem2k
Member
Registered: 2020-11-24
Posts: 9

Re: Can't login after upgrade

so here is my journalctl -b -1:

http://sprunge.us/iapTC4

Offline

#14 2020-11-24 17:38:25

CarbonChauvinist
Member
Registered: 2012-06-16
Posts: 413
Website

Re: Can't login after upgrade

Perhaps related to keyboard layout of LightDM?

Last edited by CarbonChauvinist (2020-11-24 17:42:52)


"the wind-blown way, wanna win? don't play"

Offline

#15 2020-11-24 17:43:27

salem2k
Member
Registered: 2020-11-24
Posts: 9

Re: Can't login after upgrade

CarbonChauvinist wrote:

Perhaps related to keyboard layout of LightDM?

no i tried that but no success sad

Offline

#16 2020-11-24 20:01:11

salem2k
Member
Registered: 2020-11-24
Posts: 9

Re: Can't login after upgrade

don't know what it was but reinstall did the job

Offline

#17 2020-11-24 23:25:46

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

Re: Can't login after upgrade

Could have been hostname issue - you had at least iwd, dhcpcd and NetworkManager enabled and there's no sight of a console login approach.
But since you nuke the system we'll never know.

Anyway, read up https://wiki.archlinux.org/index.php/Ne … figuration - esp. the note in https://wiki.archlinux.org/index.php/Ne … k_managers

Offline

Board footer

Powered by FluxBB