Skip to content

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.

1 points9 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
1 · 67% up
Kind
Text
ID
id5rtk

Author

13
posts
43
comments
0
media
View profile

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 error message.

Btw, you can check your journal with journalctl --root /mnt from archiso to see more details.

5 points

Yeah, I have a ~/.pam_environment file:

SSH_AUTH_SOCK DEFAULT="${XDG_RUNTIME_DIR}/ssh-agent.socket"

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??

2 points

Thank you for helping this person instead of turning your nose and downvoting them. You are appreciated :)

2 points

There are two issues at play here.

  1. Is the .pacnew problem because of pam changes. This is an user issue.

  2. Some changes does something with custom ~/.pam_environmen file.

For issue 2 there is this bugreport: https://bugs.archlinux.org/task/67636

3 points

Yeah I have the ~/.pam_environment file with SSH_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?

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.