Same issue as others (unable to login after upgrade) but using pacnew files didn’t fix
I should note that I never actually found any PAM-related pacnew files. They weren’t even in my pacman.log. So I backed them up and reinstalled pam and pambase instead.
I used pacdiff to check which others files I may have missed. It found /etc/shadow and /etc/sudoers. I told it to overwrite those files, used visudo to give my user sudo permissions again and tried to log in but that broke everything more.
From an Arch ISO I ran passwd on root and on my user, this asked only for “New password” and did not prompt for the old passwords. After setting them and rebooting I can login to root but not my user:
Critical error — immediate abort
How do I fix pam?
EDIT: Okay, so I downgraded the packages that were upgraded (hwids, pam, pambase, seabios) and everything's cool now, but obviously upgrading is going to break everything again. fwiw, here is the pacman.log:
[2020-08-20T07:33:09+0100] [PACMAN] Running 'pacman -S -u -y --config /etc/pacman.conf --'
[2020-08-20T07:33:09+0100] [PACMAN] synchronizing package lists
[2020-08-20T07:33:12+0100] [PACMAN] starting full system upgrade
[2020-08-20T07:33:18+0100] [ALPM] transaction started
[2020-08-20T07:33:18+0100] [ALPM] upgraded hwids (20200306-1 -> 20200813.1-1)
[2020-08-20T07:33:18+0100] [ALPM] upgraded pambase (20190105.1-2 -> 20200721.1-2)
[2020-08-20T07:33:18+0100] [ALPM] upgraded pam (1.3.1-2 -> 1.4.0-3)
[2020-08-20T07:33:18+0100] [ALPM] upgraded seabios (1.13.0-2 -> 1.14.0-1)
[2020-08-20T07:33:18+0100] [ALPM] transaction completed
[2020-08-20T07:33:18+0100] [ALPM] running '30-systemd-daemon-reload.hook'...
[2020-08-20T07:33:18+0100] [ALPM] running '30-systemd-tmpfiles.hook'...
[2020-08-20T07:33:18+0100] [ALPM] running '30-systemd-update.hook'...
I don't see anything about pacnew files?
e: fyi, the solution for me was to add an empty newline at the end of my ~/.pam_environment
Edited 22 Aug 2020. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 1 · 67% up
- Kind
- Text
- ID
- id5rtk
9 comments
Yea, if you delete (or reset) /etc/shadow you're (probably among other things) resetting your user's and root's passwords.
Something I ran into today: Do you have a ~/.pam_environment file? I had one from here and that caused a similar
critical errormessage.Btw, you can check your journal with
journalctl --root /mntfrom archiso to see more details.Yeah, I have a
~/.pam_environmentfile:Yeah I need to learn journalctl properly because I'm not 100% with it. Did you remove pam_environment then, is that what fixed it??
Yes, I removed the file for now.
Thank you for helping this person instead of turning your nose and downvoting them. You are appreciated :)
There are two issues at play here.
Is the
.pacnewproblem because of pam changes. This is an user issue.Some changes does something with custom
~/.pam_environmenfile.For issue 2 there is this bugreport: https://bugs.archlinux.org/task/67636
Yeah I have the
~/.pam_environmentfile withSSH_AUTH_SOCK DEFAULT="${XDG_RUNTIME_DIR}/ssh-agent.socket"in it, I guess that's causing the error. I added it from here, so I guess the solution for now is to just wait and follow the bug report?Would it suffice to put the SSH_AUTH_SOCK in my zshenv file instead, or must it be in pam_environment?
systemd does not source any zshenv files.