You are not logged in.

#1 2020-08-20 08:57:15

vf
Member
Registered: 2020-04-07
Posts: 32

[SOLVED] can't login locally

Hi,

I was on my session, I did an upgrade, I rebooted, and now I can't login to my user or my root

The keyboard seems to work fine considering that everything typed in `localhost login:` seems fine

I tried to login remotely from SSH and it works, for the same users and same passwords

Do you have any ideas?

```
kernel: [Firmware Bug]: TSC_DEADLINE disabled due to Errata; please update microcode to version: 0x22 (or later)

kernel: lpc_ich: Resource conflict(s) found affecting gpio_ich

systemd-udevd[276]: controlC1: Process '/usr/bin/alsactl restore 1' failed with exit code 99.



login[390]: PAM unable to dlopen(/usr/lib/security/pam_tally2.so): /usr/lib/security/pam_tally2.so: cannot open shared object file: No such file or directory
login[390]: PAM adding faulty module: /usr/lib/security/pam_tally2.so
login[390]: PAM unable to dlopen(/usr/lib/security/pam_cgfs.so): /usr/lib/security/pam_cgfs.so: cannot open shared object file: No such file or directory
login[390]: PAM adding faulty module: /usr/lib/security/pam_cgfs.so

login[387]: pam_systemd_home(login:auth): Failed to query user record: Unit dbus-org.freedesktop.home1.service not found.
```

Last edited by vf (2020-08-20 11:19:47)

Offline

#2 2020-08-20 09:02:53

parky6
Member
Registered: 2010-03-05
Posts: 11

Re: [SOLVED] can't login locally

I have the same issue, tried from both X and tty with correct credentials

Offline

#3 2020-08-20 09:42:04

tucuxi
Member
From: Prague
Registered: 2020-03-08
Posts: 27

Re: [SOLVED] can't login locally

I would try

sudo pacman -S pam

Offline

#4 2020-08-20 10:16:52

vf
Member
Registered: 2020-04-07
Posts: 32

Re: [SOLVED] can't login locally

remains exactly the same

Offline

#5 2020-08-20 10:31:13

robt77
Member
From: Manchester
Registered: 2014-10-26
Posts: 18
Website

Re: [SOLVED] can't login locally

https://bbs.archlinux.org/viewtopic.php?id=258313


vf wrote:

Hi,

I was on my session, I did an upgrade, I rebooted, and now I can't login to my user or my root

The keyboard seems to work fine considering that everything typed in `localhost login:` seems fine

I tried to login remotely from SSH and it works, for the same users and same passwords

Do you have any ideas?

```
kernel: [Firmware Bug]: TSC_DEADLINE disabled due to Errata; please update microcode to version: 0x22 (or later)

kernel: lpc_ich: Resource conflict(s) found affecting gpio_ich

systemd-udevd[276]: controlC1: Process '/usr/bin/alsactl restore 1' failed with exit code 99.



login[390]: PAM unable to dlopen(/usr/lib/security/pam_tally2.so): /usr/lib/security/pam_tally2.so: cannot open shared object file: No such file or directory
login[390]: PAM adding faulty module: /usr/lib/security/pam_tally2.so
login[390]: PAM unable to dlopen(/usr/lib/security/pam_cgfs.so): /usr/lib/security/pam_cgfs.so: cannot open shared object file: No such file or directory
login[390]: PAM adding faulty module: /usr/lib/security/pam_cgfs.so

login[387]: pam_systemd_home(login:auth): Failed to query user record: Unit dbus-org.freedesktop.home1.service not found.
```

Offline

#6 2020-08-20 10:58:47

vf
Member
Registered: 2020-04-07
Posts: 32

Re: [SOLVED] can't login locally

```
pacman -Qkk pam
pam: 551 total files, 0 altered files
```

Offline

#7 2020-08-20 11:05:43

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 11,183

Re: [SOLVED] can't login locally

Then you either created files yourself or a package still uses these modules in which case you should make a relevant bugreport, search for files using tally2 and cfg in /etc/security and remove the relevant lines/check which package they belong to with pacman -Qo and file relevant bug reports should they come from the repos.

Also if you intend to use code tags do so with [ code ] [ /code ] without spaces instead of backticks

Last edited by V1del (2020-08-20 11:06:28)

Offline

#8 2020-08-20 11:08:25

RLLBcheese
Member
Registered: 2020-08-20
Posts: 2

Re: [SOLVED] can't login locally

Just had this issue myself.  Try checking for /etc/pam.d/system-login.pacnew.  If it exists, replace your current /etc/pam.d/system-login and reboot.

Offline

#9 2020-08-20 11:13:48

vf
Member
Registered: 2020-04-07
Posts: 32

Re: [SOLVED] can't login locally

```
diff /etc/pam.d/system-login.pacnew /etc/pam.d/system-login
2a3
> auth       required   pam_tally2.so        onerr=succeed file=/var/log/tallylog
6a8
> account    required   pam_tally2.so
19c21,22
< session    required   pam_env.so           user_readenv=1
---
> session    required   pam_env.so
> session    optional   pam_cgfs.so        -c freezer,memory,name=systemd,unified
```

With this replacement it works

If someone with the problem is courageous enough to make a bug report for this to be corrected in the next release...

Last edited by vf (2020-08-20 11:19:19)

Offline

#10 2020-08-20 11:21:48

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 11,183

Re: [SOLVED] can't login locally

That's normal system maintenance, so no need for a bug report, but the package you should've pacman -Qkk'd was pambase. And this is the reason you need to read your pacman output as it will have mentioned the creation of this file.

Last edited by V1del (2020-08-20 11:22:19)

Offline

#11 2020-08-20 11:25:05

vf
Member
Registered: 2020-04-07
Posts: 32

Re: [SOLVED] can't login locally

```
pacman -Qkk pambase
backup file: pambase: /etc/pam.d/system-login (Modification time mismatch)
pambase: 8 total files, 0 altered files
```

Offline

#12 2020-08-20 11:28:45

deadfrominside
Member
Registered: 2020-08-20
Posts: 1

Re: [SOLVED] can't login locally

Found this in /var/log/pacman.log:

[2020-08-19T22:48:36+0530] [ALPM] warning: /etc/pam.d/system-login installed as /etc/pam.d/system-login.pacnew
[2020-08-19T22:48:36+0530] [ALPM] upgraded pambase (20190105.1-2 -> 20200721.1-2)
[2020-08-19T22:48:36+0530] [ALPM] upgraded pam (1.3.1-2 -> 1.4.0-3)

Able to login again by doing this via live usb boot

mv /etc/pam.d/system-login /etc/pam.d/system-login.broken
mv /etc/pam.d/system-login.pacnew /etc/pam.d/system-login

Offline

#13 2020-08-20 11:40:59

vf
Member
Registered: 2020-04-07
Posts: 32

Re: [SOLVED] can't login locally

Same

Any upgarde/update should be thinked to not break the system "by default"

You either ask the user if he wants so, either you make a special flag to trigger that behaviour, but in any case you never brake the authentification system by a simple usual update

I don't know if many people was affected but the fact is here

Last edited by vf (2020-08-20 11:41:58)

Offline

#14 2020-08-20 11:57:29

RLLBcheese
Member
Registered: 2020-08-20
Posts: 2

Re: [SOLVED] can't login locally

If anything, this is a bit indicative of an incomplete packagekit backend for e.g. KDE Discover, Gnome Software Centre.  The messages about .pacnew files don't show up in the message view when using graphical update tools, and so it's very easy to update and then not realise there's been a critical config file update.

We can't have the .pacnew files automatically overwrite the old files (or do a swap like @deadfrominside did), since this would actually cause more unusable systems than the current solution (/etc/shadow.pacnew would be one example).  Merging these files also requires some human intervention since the merges are often non-trivial and require human-like understanding.

Maybe pacnew resolver tools should be hard-dep'd by packagekit and automatically invoked if the installation occurs via packagekit?  It would reduce the number of times this happens, but I can imagine such a move ruffling a few feathers.  I wonder what ubuntu/debian do with packages that perform a dpkg-reconfigure?

Offline

#15 2020-08-21 06:56:47

mrazster
Member
From: 127.0.0.1
Registered: 2019-05-24
Posts: 25
Website

Re: [SOLVED] can't login locally

deadfrominside wrote:

Able to login again by doing this via live usb boot

mv /etc/pam.d/system-login /etc/pam.d/system-login.broken
mv /etc/pam.d/system-login.pacnew /etc/pam.d/system-login

You´re a life saver...thnx !


Arch...the way it was meant to be !!

Offline

#16 2020-11-22 09:44:33

vf
Member
Registered: 2020-04-07
Posts: 32

Re: [SOLVED] can't login locally

Search about ^@ and input polldev and Linux 4.13 for more information

Last edited by vf (2020-11-22 09:46:19)

Offline

#17 2020-11-22 13:30:27

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 3,438

Re: [SOLVED] can't login locally

Closing this solved thread.

Offline

Board footer

Powered by FluxBB