You are not logged in.
I have been dual bootingArch and Windows 10 for the last year or so, but this week after using pacman -Syu successfully, large chunks of my system have been corrupted.
After rebooting my computer grub would start fine, but after selecting Arch in the grub menu it would complain about libmount.so having an invalid ELF header. At this point rebooted I booted a live USB, mounted /mnt and /boot to my Arch installation and - after scrambling with pacman - reinstalled both linux kernel (in case there were any issues with initframs) and util-linux.
pacman -Syu --overwrite "*" linux util-linux
When I ran pacman, it would run properly but would warn about not being able to find a couple of glibc's directories, so I tried reeinstalling glibc with the same command above.
After reinstalling all these packages the system would boot and would prompt for login, but after I type any username (including root) it simply shows the following error message without even asking for the password:
Arch Linux 6.4.11-arch2-1 (tty1)
linux login:hydro
Authentication failure
This looks to me to be an issue with pam, but journalctl doesn't help much to point to a specific issue.
[root@archiso] journalctl -S today
...
Aug 20 18:12:06 linux kernel: IPv6: ADDRCONF(NETDEV_CHANGE): enp5s0: link becomes ready
Aug 20 18:12:07 linux login[392]: pam_warn(login:account): function=[pam_sm_acct_mgmt] flags=0 service=[login] terminal=[/dev/tty1] user=[hydro] ruser=[<unknown>] rhost=[<unknown>]
Aug 20 18:12:07 linux login[392]: Authentication failure
Aug 20 18:12:08 linux dbus-daemon[357]: [system] Activating via systemd: service name='org.freedesktop.resolve1' unit='dbus-org.freedesktop.resolve1.service' requested by ':1.4' (uid=0 pid=380 comm="/usr/bin/NetworkManager --no-daemon")
...
Things I have done
Reinstalled pam and pam-base packages and restored the default config files on /etc/pam.d/
Checked if the users are in /etc/shadow and /etc/passwd
Created a new user in the wheel group and tried to login with it (to no avail)
Checked the permissions of all files in /lib/security/
Link to journalctl -b -1 (sorry for pastebin)
thanks for the help
Last edited by HighZ (2023-08-21 01:33:10)
Offline
Please chroot in from the live media and post the output of the following to a pastebin
# pacman -Qkk 2>&1 | grep -Fv '0 altered files'Offline
Thanks.
Offline
backup file: util-linux: /etc/pam.d/chsh (Size mismatch)
backup file: util-linux: /etc/pam.d/chsh (MD5 checksum mismatch)
backup file: util-linux: /etc/pam.d/chsh (SHA256 checksum mismatch)
backup file: util-linux: /etc/pam.d/login (Modification time mismatch)
backup file: util-linux: /etc/pam.d/login (Size mismatch)
backup file: util-linux: /etc/pam.d/login (MD5 checksum mismatch)
backup file: util-linux: /etc/pam.d/login (SHA256 checksum mismatch)
backup file: util-linux: /etc/pam.d/runuser-l (Size mismatch)
backup file: util-linux: /etc/pam.d/runuser-l (MD5 checksum mismatch)
backup file: util-linux: /etc/pam.d/runuser-l (SHA256 checksum mismatch)
backup file: util-linux: /etc/pam.d/su (Modification time mismatch)
backup file: util-linux: /etc/pam.d/su (Size mismatch)
backup file: util-linux: /etc/pam.d/su (MD5 checksum mismatch)
backup file: util-linux: /etc/pam.d/su (SHA256 checksum mismatch)
backup file: util-linux: /etc/pam.d/su-l (Modification time mismatch)
backup file: util-linux: /etc/pam.d/su-l (Size mismatch)
backup file: util-linux: /etc/pam.d/su-l (MD5 checksum mismatch)
backup file: util-linux: /etc/pam.d/su-l (SHA256 checksum mismatch)How did you restore the default config files in /etc/pam.d? What is the contents of the files above detected as modified currently?
Offline
I just reverted the changes I know I've made to those files, but apparetely that is not enough. Strangely, I have never changed most of those files, like /etc/pam.d/su for instance, but It shows as modified.
Is there a way to revert those files to default?
Offline
Is there a way to revert those files to default?
Chroot in from the live media. This assumes you are using the most recent util-linux and that it is in pacman's cache:
# bsdtar -xf /var/cache/pacman/pkg/util-linux-2.39.1-1-x86_64.pkg.tar.zst -C / etc/pam.d/Offline
HighZ wrote:Is there a way to revert those files to default?
Chroot in from the live media. This assumes you are using the most recent util-linux and that it is in pacman's cache:
# bsdtar -xf /var/cache/pacman/pkg/util-linux-2.39.1-1-x86_64.pkg.tar.zst -C / etc/pam.d/
That did it. Thank you so much for the help!
Offline