You are not logged in.

#1 2023-05-26 05:13:41

BrainyXS
Member
Registered: 2023-02-16
Posts: 9

[Solved] Can not login after pam upgrade

So a few weeks ago, I upgraded the system with pacman -Syu. After the next reboot, I was unable to log into the system anymore. When I tried to login, the error

 Critical error - immediate abort 

would appear. This happened for every user, including root. faillock --reset would not help. I was able to chroot into the system and downgrade the pam-package, after that I was able to log in again.
Since I needed the system, I staied on the downgraded pam-package for the last 2 weeks, being able to log in and use the system.
Yesterday, I tried to upgrade the package again - same error. Chroot, downgrade and It is working again.

Can someone help me get the new version of pam running? I hoped that it was a bug that would be fixed within a few day's, but since the error first occured, the pam package was upgraded again to a newer version, which also does not work.
Here are some pam-related logs (journalctl | grep "pam")

 
May 25 17:52:12 brainysrv sshd[3005977]: pam_systemd_home(sshd:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 17:52:12 brainysrv sshd[3005977]: pam_env(sshd:setcred): Unrecognized Option: required pam_limits.so
May 25 17:52:12 brainysrv sshd[3005977]: pam_unix(sshd:session): session opened for user brainy(uid=1000) by (uid=0)
May 25 17:52:12 brainysrv sshd[3005977]: pam_env(sshd:session): Unrecognized Option: required pam_limits.so
May 25 17:52:12 brainysrv sshd[3005979]: pam_env(sshd:setcred): Unrecognized Option: required pam_limits.so
May 25 17:52:12 brainysrv sshd[3005977]: pam_unix(sshd:session): session closed for user brainy
May 25 17:52:12 brainysrv sshd[3005977]: pam_env(sshd:setcred): Unrecognized Option: required pam_limits.so
May 25 17:52:12 brainysrv sshd[3006164]: pam_systemd_home(sshd:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 17:52:12 brainysrv sshd[3006164]: pam_env(sshd:setcred): Unrecognized Option: required pam_limits.so
May 25 17:52:12 brainysrv sshd[3006164]: pam_unix(sshd:session): session opened for user brainy(uid=1000) by (uid=0)
May 25 17:52:13 brainysrv sshd[3006164]: pam_env(sshd:session): Unrecognized Option: required pam_limits.so
May 25 17:52:13 brainysrv sshd[3006166]: pam_env(sshd:setcred): Unrecognized Option: required pam_limits.so
May 25 17:52:13 brainysrv sshd[3006168]: pam_systemd_home(sshd:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 17:52:13 brainysrv sshd[3006168]: pam_env(sshd:setcred): Unrecognized Option: required pam_limits.so
May 25 17:52:13 brainysrv sshd[3006168]: pam_unix(sshd:session): session opened for user brainy(uid=1000) by (uid=0)
May 25 17:52:13 brainysrv sshd[3006168]: pam_env(sshd:session): Unrecognized Option: required pam_limits.so
May 25 17:52:13 brainysrv sshd[3006170]: pam_env(sshd:setcred): Unrecognized Option: required pam_limits.so
May 25 17:52:15 brainysrv sshd[3006168]: pam_unix(sshd:session): session closed for user brainy
May 25 17:52:15 brainysrv sshd[3006164]: pam_unix(sshd:session): session closed for user brainy
May 25 17:52:15 brainysrv sshd[3006168]: pam_env(sshd:setcred): Unrecognized Option: required pam_limits.so
May 25 17:52:15 brainysrv sshd[3006164]: pam_env(sshd:setcred): Unrecognized Option: required pam_limits.so
May 25 21:46:49 brainysrv sshd[3167645]: pam_systemd_home(sshd:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 21:46:49 brainysrv sshd[3167645]: pam_env(sshd:setcred): Unrecognized Option: required pam_limits.so
May 25 21:46:49 brainysrv sshd[3167645]: pam_unix(sshd:session): session opened for user brainy(uid=1000) by (uid=0)
May 25 21:46:49 brainysrv sshd[3167645]: pam_env(sshd:session): Unrecognized Option: required pam_limits.so
May 25 21:46:49 brainysrv sshd[3167647]: pam_env(sshd:setcred): Unrecognized Option: required pam_limits.so
May 25 21:48:26 brainysrv sudo[3168770]: pam_systemd_home(sudo:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 21:48:28 brainysrv sudo[3168770]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:48:28 brainysrv sudo[3168770]: pam_unix(sudo:session): session opened for user root(uid=0) by brainy(uid=1000)
May 25 21:48:28 brainysrv sudo[3168770]: pam_unix(sudo:session): session closed for user root
May 25 21:48:28 brainysrv sudo[3168770]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:48:39 brainysrv sudo[3168815]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 21:48:39 brainysrv sudo[3168815]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:48:39 brainysrv sudo[3168815]: pam_unix(sudo:session): session opened for user root(uid=0) by brainy(uid=1000)
May 25 21:48:39 brainysrv sudo[3168815]: pam_unix(sudo:session): session closed for user root
May 25 21:48:39 brainysrv sudo[3168815]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:48:43 brainysrv sudo[3168821]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 21:48:43 brainysrv sudo[3168821]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:48:43 brainysrv sudo[3168821]: pam_unix(sudo:session): session opened for user root(uid=0) by brainy(uid=1000)
May 25 21:48:45 brainysrv sudo[3168821]: pam_unix(sudo:session): session closed for user root
May 25 21:48:45 brainysrv sudo[3168821]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:48:47 brainysrv sudo[3169085]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 21:48:47 brainysrv sudo[3169085]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:48:47 brainysrv sudo[3169085]: pam_unix(sudo:session): session opened for user root(uid=0) by brainy(uid=1000)
May 25 21:48:49 brainysrv sudo[3169085]: pam_unix(sudo:session): session closed for user root
May 25 21:48:49 brainysrv sudo[3169085]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:48:53 brainysrv sudo[3169109]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 21:48:53 brainysrv sudo[3169109]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:48:53 brainysrv sudo[3169109]: pam_unix(sudo:session): session opened for user root(uid=0) by brainy(uid=1000)
May 25 21:49:03 brainysrv sudo[3169109]: pam_unix(sudo:session): session closed for user root
May 25 21:49:03 brainysrv sudo[3169109]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:49:10 brainysrv sudo[3169156]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 21:49:10 brainysrv sudo[3169156]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:49:10 brainysrv sudo[3169156]: pam_unix(sudo:session): session opened for user root(uid=0) by brainy(uid=1000)
May 25 21:49:12 brainysrv sudo[3169156]: pam_unix(sudo:session): session closed for user root
May 25 21:49:12 brainysrv sudo[3169156]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:49:13 brainysrv sudo[3169164]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 21:49:13 brainysrv sudo[3169164]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:49:13 brainysrv sudo[3169164]: pam_unix(sudo:session): session opened for user root(uid=0) by brainy(uid=1000)
May 25 21:49:17 brainysrv sudo[3169164]: pam_unix(sudo:session): session closed for user root
May 25 21:49:17 brainysrv sudo[3169164]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:49:31 brainysrv sudo[3169549]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 21:49:31 brainysrv sudo[3169549]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:49:31 brainysrv sudo[3169549]: pam_unix(sudo:session): session opened for user root(uid=0) by brainy(uid=1000)
May 25 21:49:38 brainysrv sudo[3169549]: pam_unix(sudo:session): session closed for user root
May 25 21:49:38 brainysrv sudo[3169549]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:50:07 brainysrv sudo[3169929]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 21:50:07 brainysrv sudo[3169929]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:50:07 brainysrv sudo[3169929]: pam_unix(sudo:session): session opened for user root(uid=0) by brainy(uid=1000)
May 25 21:50:11 brainysrv sudo[3169929]: pam_unix(sudo:session): session closed for user root
May 25 21:50:11 brainysrv sudo[3169929]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:50:28 brainysrv sudo[3170246]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 21:50:28 brainysrv sudo[3170246]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:50:28 brainysrv sudo[3170246]: pam_unix(sudo:session): session opened for user root(uid=0) by brainy(uid=1000)
May 25 21:50:28 brainysrv sudo[3170246]: pam_unix(sudo:session): session closed for user root
May 25 21:50:28 brainysrv sudo[3170246]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:50:31 brainysrv sudo[3170250]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 21:50:31 brainysrv sudo[3170250]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:50:31 brainysrv sudo[3170250]: pam_unix(sudo:session): session opened for user root(uid=0) by brainy(uid=1000)
May 25 21:50:34 brainysrv sudo[3170250]: pam_unix(sudo:session): session closed for user root
May 25 21:50:34 brainysrv sudo[3170250]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:50:36 brainysrv sudo[3170262]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 21:50:37 brainysrv sudo[3170262]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:50:37 brainysrv sudo[3170262]: pam_unix(sudo:session): session opened for user root(uid=0) by brainy(uid=1000)
May 25 21:50:38 brainysrv sudo[3170262]: pam_unix(sudo:session): session closed for user root
May 25 21:50:38 brainysrv sudo[3170262]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:51:07 brainysrv sudo[3170613]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 21:51:07 brainysrv sudo[3170613]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:51:07 brainysrv sudo[3170613]: pam_unix(sudo:session): session opened for user root(uid=0) by brainy(uid=1000)
May 25 21:51:07 brainysrv sudo[3170613]: pam_unix(sudo:session): session closed for user root
May 25 21:51:07 brainysrv sudo[3170613]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:51:12 brainysrv sudo[3170641]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 21:51:12 brainysrv sudo[3170641]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:51:12 brainysrv sudo[3170641]: pam_unix(sudo:session): session opened for user root(uid=0) by brainy(uid=1000)
May 25 21:51:12 brainysrv sudo[3170641]: pam_unix(sudo:session): session closed for user root
May 25 21:51:12 brainysrv sudo[3170641]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:51:16 brainysrv sudo[3170922]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 21:51:16 brainysrv sudo[3170922]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:51:16 brainysrv sudo[3170922]: pam_unix(sudo:session): session opened for user root(uid=0) by brainy(uid=1000)
May 25 21:51:40 brainysrv sudo[3170922]: pam_unix(sudo:session): session closed for user root
May 25 21:51:40 brainysrv sudo[3170922]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:51:56 brainysrv sudo[3171286]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 21:51:56 brainysrv sudo[3171286]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:51:56 brainysrv sudo[3171286]: pam_unix(sudo:session): session opened for user root(uid=0) by brainy(uid=1000)
May 25 21:52:01 brainysrv sudo[3171286]: pam_unix(sudo:session): session closed for user root
May 25 21:52:01 brainysrv sudo[3171286]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:52:35 brainysrv sudo[3171625]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 21:52:48 brainysrv sudo[3171933]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 21:52:48 brainysrv sudo[3171933]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:52:48 brainysrv sudo[3171933]: pam_unix(sudo:session): session opened for user root(uid=0) by brainy(uid=1000)
May 25 21:52:48 brainysrv sudo[3171933]: pam_unix(sudo:session): session closed for user root
May 25 21:52:48 brainysrv sudo[3171933]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:52:51 brainysrv sudo[3171940]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 21:52:51 brainysrv sudo[3171940]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:52:51 brainysrv sudo[3171940]: pam_unix(sudo:session): session opened for user root(uid=0) by brainy(uid=1000)
May 25 21:52:51 brainysrv sudo[3171940]: pam_unix(sudo:session): session closed for user root
May 25 21:52:51 brainysrv sudo[3171940]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:53:46 brainysrv sudo[3172397]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 21:53:46 brainysrv sudo[3172397]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:53:46 brainysrv sudo[3172397]: pam_unix(sudo:session): session opened for user root(uid=0) by brainy(uid=1000)
May 25 21:53:49 brainysrv sudo[3172397]: pam_unix(sudo:session): session closed for user root
May 25 21:53:49 brainysrv sudo[3172397]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:53:52 brainysrv sudo[3172598]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 21:53:52 brainysrv sudo[3172598]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:53:52 brainysrv sudo[3172598]: pam_unix(sudo:session): session opened for user root(uid=0) by brainy(uid=1000)
May 25 21:53:58 brainysrv systemd[1]: unit_file_build_name_map: normal unit file: /usr/lib/systemd/system/pam_namespace.service
May 25 21:53:59 brainysrv sudo[3172598]: pam_unix(sudo:session): session closed for user root
May 25 21:53:59 brainysrv sudo[3172598]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:54:03 brainysrv sudo[3172893]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 21:54:03 brainysrv sudo[3172893]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:54:03 brainysrv sudo[3172893]: pam_unix(sudo:session): session opened for user root(uid=0) by brainy(uid=1000)
May 25 21:54:04 brainysrv sudo[3172893]: pam_unix(sudo:session): session closed for user root
May 25 21:54:06 brainysrv sudo[3172901]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 21:54:06 brainysrv sudo[3172901]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:54:06 brainysrv sudo[3172901]: pam_unix(sudo:session): session opened for user root(uid=0) by brainy(uid=1000)
May 25 21:54:06 brainysrv sudo[3172901]: pam_unix(sudo:session): session closed for user root
May 25 21:54:08 brainysrv sudo[3172906]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 21:54:08 brainysrv sudo[3172906]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:54:08 brainysrv sudo[3172906]: pam_unix(sudo:session): session opened for user root(uid=0) by brainy(uid=1000)
May 25 21:54:09 brainysrv sudo[3172906]: pam_unix(sudo:session): session closed for user root
May 25 21:54:14 brainysrv sudo[3172933]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 21:54:14 brainysrv sudo[3172933]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 21:54:14 brainysrv sudo[3172933]: pam_unix(sudo:session): session opened for user root(uid=0) by brainy(uid=1000)
May 25 21:54:14 brainysrv sudo[3172933]: pam_unix(sudo:session): session closed for user root
May 25 21:54:14 brainysrv sshd[3167645]: pam_unix(sshd:session): session closed for user brainy
May 25 21:54:14 brainysrv sshd[3167645]: pam_env(sshd:setcred): Unrecognized Option: required pam_limits.so
May 25 21:54:15 brainysrv systemd[1]: Received SIGCHLD from PID 4616 ((sd-pam)).
May 25 21:54:15 brainysrv systemd[1]: Child 4616 ((sd-pam)) died (code=killed, status=9/KILL)
May 25 21:54:45 brainysrv systemd[1]: unit_file_build_name_map: normal unit file: /usr/lib/systemd/system/pam_namespace.service
May 25 21:55:11 brainysrv cockpit-session[5950]: pam_systemd_home(cockpit:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 21:55:11 brainysrv cockpit-session[5950]: pam_env(cockpit:setcred): Unrecognized Option: required pam_limits.so
May 25 21:55:11 brainysrv cockpit-session[5950]: pam_unix(cockpit:session): session opened for user brainy(uid=1000) by brainy(uid=0)
May 25 21:55:11 brainysrv cockpit-ws[5950]: cockpit-session: pam: Web console: https://brainysrv:9090/ or https://10.50.1.188:9090/
May 25 21:55:11 brainysrv (systemd)[5972]: pam_systemd_home(systemd-user:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 21:55:11 brainysrv (systemd)[5972]: pam_warn(systemd-user:setcred): function=[pam_sm_setcred] flags=0x2 service=[systemd-user] terminal=[] user=[brainy] ruser=[<unknown>] rhost=[<unknown>]
May 25 21:55:11 brainysrv (systemd)[5972]: pam_setcred() failed, ignoring: Failure setting user credentials
May 25 21:55:11 brainysrv (systemd)[5972]: pam_unix(systemd-user:session): session opened for user brainy(uid=1000) by brainy(uid=0)
May 25 21:55:11 brainysrv (systemd)[5972]: pam_motd(systemd-user:session): conversation failed
May 25 21:55:11 brainysrv (systemd)[5972]: pam_env(systemd-user:session): Unrecognized Option: required pam_limits.so
May 25 21:55:11 brainysrv cockpit-session[5950]: pam_env(cockpit:session): Unrecognized Option: required pam_limits.so
May 25 22:02:56 brainysrv systemd[1]: unit_file_build_name_map: normal unit file: /usr/lib/systemd/system/pam_namespace.service
May 25 22:03:09 brainysrv login[433]: pam_systemd_home(login:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 22:03:11 brainysrv login[433]: pam_env(login:setcred): Unrecognized Option: required pam_limits.so
May 25 22:03:11 brainysrv login[433]: pam_unix(login:session): session opened for user brainy(uid=1000) by LOGIN(uid=0)
May 25 22:03:11 brainysrv (systemd)[3980]: pam_systemd_home(systemd-user:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 22:03:11 brainysrv (systemd)[3980]: pam_warn(systemd-user:setcred): function=[pam_sm_setcred] flags=0x2 service=[systemd-user] terminal=[] user=[brainy] ruser=[<unknown>] rhost=[<unknown>]
May 25 22:03:11 brainysrv (systemd)[3980]: pam_setcred() failed, ignoring: Failure setting user credentials
May 25 22:03:11 brainysrv (systemd)[3980]: pam_unix(systemd-user:session): session opened for user brainy(uid=1000) by (uid=0)
May 25 22:03:11 brainysrv (systemd)[3980]: pam_motd(systemd-user:session): conversation failed
May 25 22:03:11 brainysrv (systemd)[3980]: pam_env(systemd-user:session): Unrecognized Option: required pam_limits.so
May 25 22:03:11 brainysrv (systemd)[3980]: Successfully forked off '(sd-pam)' as PID 3996.
May 25 22:03:11 brainysrv login[433]: pam_env(login:session): Unrecognized Option: required pam_limits.so
May 25 22:03:11 brainysrv login[433]: pam_env(login:setcred): Unrecognized Option: required pam_limits.so
May 25 22:03:49 brainysrv sudo[6601]: pam_systemd_home(sudo:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 22:03:50 brainysrv sudo[6601]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 22:03:50 brainysrv sudo[6601]: pam_unix(sudo:session): session opened for user root(uid=0) by brainy(uid=1000)
May 25 22:03:50 brainysrv su[6608]: pam_unix(su:session): session opened for user root(uid=0) by brainy(uid=0)
May 25 22:04:25 brainysrv systemd[1]: unit_file_build_name_map: normal unit file: /usr/lib/systemd/system/pam_namespace.service
May 25 22:04:28 brainysrv su[6608]: pam_unix(su:session): session closed for user root
May 25 22:04:28 brainysrv sudo[6601]: pam_unix(sudo:session): session closed for user root
May 25 22:04:28 brainysrv sudo[6601]: pam_env(sudo:setcred): Unrecognized Option: required pam_limits.so
May 25 22:04:30 brainysrv login[433]: pam_env(login:setcred): Unrecognized Option: required pam_limits.so
May 25 22:04:30 brainysrv login[433]: pam_unix(login:session): session closed for user brainy
May 25 22:04:31 brainysrv (sd-pam)[3996]: pam_warn(systemd-user:setcred): function=[pam_sm_setcred] flags=0x4 service=[systemd-user] terminal=[] user=[brainy] ruser=[<unknown>] rhost=[<unknown>]
May 25 22:04:31 brainysrv systemd[1]: Received SIGCHLD from PID 3996 ((sd-pam)).
May 25 22:04:31 brainysrv systemd[1]: Child 3996 ((sd-pam)) died (code=killed, status=9/KILL)
May 25 22:04:56 brainysrv systemd[1]: unit_file_build_name_map: normal unit file: /usr/lib/systemd/system/pam_namespace.service
May 25 22:05:05 brainysrv login[441]: pam_systemd_home(login:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 22:05:06 brainysrv login[441]: pam_env(login:setcred): Unrecognized Option: required pam_limits.so
May 25 22:05:06 brainysrv login[441]: pam_unix(login:session): session opened for user brainy(uid=1000) by brainy(uid=0)
May 25 22:05:07 brainysrv (systemd)[1123]: pam_systemd_home(systemd-user:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 22:05:07 brainysrv (systemd)[1123]: pam_warn(systemd-user:setcred): function=[pam_sm_setcred] flags=0x2 service=[systemd-user] terminal=[] user=[brainy] ruser=[<unknown>] rhost=[<unknown>]
May 25 22:05:07 brainysrv (systemd)[1123]: pam_setcred() failed, ignoring: Failure setting user credentials
May 25 22:05:07 brainysrv (systemd)[1123]: pam_unix(systemd-user:session): session opened for user brainy(uid=1000) by brainy(uid=0)
May 25 22:05:07 brainysrv (systemd)[1123]: pam_motd(systemd-user:session): conversation failed
May 25 22:05:07 brainysrv (systemd)[1123]: pam_env(systemd-user:session): Unrecognized Option: required pam_limits.so
May 25 22:05:07 brainysrv login[441]: pam_env(login:session): Unrecognized Option: required pam_limits.so
May 25 22:05:07 brainysrv login[441]: pam_env(login:setcred): Unrecognized Option: required pam_limits.so
May 25 22:11:39 brainysrv systemd[1]: unit_file_build_name_map: normal unit file: /usr/lib/systemd/system/pam_namespace.service
May 25 22:11:48 brainysrv login[433]: pam_systemd_home(login:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 22:11:49 brainysrv login[433]: pam_env(login:setcred): Unrecognized Option: required pam_limits.so
May 25 22:11:49 brainysrv login[433]: pam_unix(login:session): session opened for user brainy(uid=1000) by LOGIN(uid=0)
May 25 22:11:50 brainysrv (systemd)[2042]: pam_systemd_home(systemd-user:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 25 22:11:50 brainysrv (systemd)[2042]: pam_warn(systemd-user:setcred): function=[pam_sm_setcred] flags=0x2 service=[systemd-user] terminal=[] user=[brainy] ruser=[<unknown>] rhost=[<unknown>]
May 25 22:11:50 brainysrv (systemd)[2042]: pam_setcred() failed, ignoring: Failure setting user credentials
May 25 22:11:50 brainysrv (systemd)[2042]: pam_unix(systemd-user:session): session opened for user brainy(uid=1000) by (uid=0)
May 25 22:11:50 brainysrv (systemd)[2042]: pam_motd(systemd-user:session): conversation failed
May 25 22:11:50 brainysrv (systemd)[2042]: pam_env(systemd-user:session): Unrecognized Option: required pam_limits.so
May 25 22:11:50 brainysrv (systemd)[2042]: Successfully forked off '(sd-pam)' as PID 2056.
May 25 22:11:50 brainysrv login[433]: pam_env(login:session): Unrecognized Option: required pam_limits.so
May 25 22:11:50 brainysrv login[433]: pam_env(login:setcred): Unrecognized Option: required pam_limits.so
May 25 22:11:52 brainysrv login[433]: pam_env(login:setcred): Unrecognized Option: required pam_limits.so
May 25 22:11:52 brainysrv login[433]: pam_unix(login:session): session closed for user brainy
May 25 22:12:19 brainysrv systemd[1]: unit_file_build_name_map: normal unit file: /usr/lib/systemd/system/pam_namespace.service

brainysrv is the hostname and brainy the username I tried to login. Same error occurs when login in as root or per ssh.
If any more logs are needed, I can provide those by chrooting into the system.
Since the system is a server that "should" run 24/7, I try to keep the downtimes as small as possible, so I am back with the old version of pam (Version pam 1.5.2-2).
Upgrading to any newer package breaks the system.

Thanks for any help!

Last edited by BrainyXS (2023-05-26 19:18:46)

Offline

#2 2023-05-26 08:08:00

mpan
Member
Registered: 2012-08-01
Posts: 1,242
Website

Re: [Solved] Can not login after pam upgrade

The current pam version is 1.5.3-2. So see, if updating to this version solves the issue.

Since the default PAM configuration seems to be working, I assume you may have edited your PAM settings and there is an error in your configuration. I would look into that first. Can’t help with debugging, as I do not know, which files are modified.


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#3 2023-05-26 08:22:06

seth
Member
Registered: 2012-09-03
Posts: 54,271

Re: [Solved] Can not login after pam upgrade

From the errors,

grep -r limits /etc/pam.d/

Otherwise do you maybe have some garbage in /etc/security/limits.* ?
And

pacman -Qikk pambase

Offline

#4 2023-05-26 15:05:48

BrainyXS
Member
Registered: 2023-02-16
Posts: 9

Re: [Solved] Can not login after pam upgrade

Thanks for your replies. I don't think I have modified any files - I would be fine with resetting them If I can login again.
Upgrading the package to 1.5.3-2 does not help.
What files could be modified to produce this behaviour or what can I delete / reset?

grep -r limits /etc/pam.d/

 
/etc/pam.d/common-session:session required pam_limits.so
/etc/pam.d/system-services:session   required    pam_limits.so
/etc/pam.d/crond:session   required    pam_limits.so
/etc/pam.d/system-auth:session    required                    pam_limits.so

pacman -Qikk pambase

Name            : pambase
Version         : 20221020-1
Description     : Base PAM configuration for services
Architecture    : any
URL             : https://www.archlinux.org
Licenses        : GPL
Groups          : None
Provides        : None
Depends On      : None
Optional Deps   : None
Required By     : pam
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 2.65 KiB
Packager        : David Runge <dvzrv@archlinux.org>
Build Date      : Thu Oct 20 11:57:24 2022
Install Date    : Fri Mar 31 18:29:20 2023
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

backup file: pambase: /etc/pam.d/other (Modification time mismatch)
backup file: pambase: /etc/pam.d/system-auth (Modification time mismatch)
backup file: pambase: /etc/pam.d/system-local-login (Modification time mismatch)
backup file: pambase: /etc/pam.d/system-login (Modification time mismatch)
backup file: pambase: /etc/pam.d/system-remote-login (Modification time mismatch)
backup file: pambase: /etc/pam.d/system-services (Modification time mismatch)
pambase: 8 total files, 0 altered files

Offline

#5 2023-05-26 15:13:52

seth
Member
Registered: 2012-09-03
Posts: 54,271

Re: [Solved] Can not login after pam upgrade

/etc/pam.d/common-session:session required pam_limits.so

What is this?

grep -r common /etc/pam.d

Offline

#6 2023-05-26 15:14:14

loqs
Member
Registered: 2014-03-06
Posts: 17,733

Re: [Solved] Can not login after pam upgrade

Please post the output of

cat /etc/pam.d/common-session
cat /etc/security/pam_env.conf
cat /etc/environment
cat /etc/security/limits.conf
grep -r common-session /etc/pam.d/

Edit:
ninjad by seth.

Last edited by loqs (2023-05-26 15:20:27)

Offline

#7 2023-05-26 15:58:43

BrainyXS
Member
Registered: 2023-02-16
Posts: 9

Re: [Solved] Can not login after pam upgrade

The command
grep -r common /etc/pam.d
returns nothing.

cat /etc/pam.d/common-session

session required pam_limits.so

cat /etc/security/pam_env.conf

#
# This is the configuration file for pam_env, a PAM module to load in
# a configurable list of environment variables for a
#
# The original idea for this came from Andrew G. Morgan ...
#<quote>
#   Mmm. Perhaps you might like to write a pam_env module that reads a
#   default environment from a file? I can see that as REALLY
#   useful... Note it would be an "auth" module that returns PAM_IGNORE
#   for the auth part and sets the environment returning PAM_SUCCESS in
#   the setcred function...
#</quote>
#
# What I wanted was the REMOTEHOST variable set, purely for selfish
# reasons, and AGM didn't want it added to the SimpleApps login
# program (which is where I added the patch). So, my first concern is
# that variable, from there there are numerous others that might/would
# be useful to be set: NNTPSERVER, LESS, PATH, PAGER, MANPAGER .....
#
# Of course, these are a different kind of variable than REMOTEHOST in
# that they are things that are likely to be configured by
# administrators rather than set by logging in, how to treat them both
# in the same config file?
#
# Here is my idea:
#
# Each line starts with the variable name, there are then two possible
# options for each variable DEFAULT and OVERRIDE.
# DEFAULT allows an administrator to set the value of the
# variable  to some default value, if none is supplied then the empty
# string is assumed. The OVERRIDE option tells pam_env that it should
# enter in its value (overriding the default value) if there is one
# to use. OVERRIDE is not used, "" is assumed and no override will be
# done.
#
# VARIABLE   [DEFAULT=[value]]  [OVERRIDE=[value]]
#
# (Possibly non-existent) environment variables may be used in values
# using the ${string} syntax and (possibly non-existent) PAM_ITEMs may
# be used in values using the @{string} syntax. Both the $ and @
# characters can be backslash escaped to be used as literal values
# values can be delimited with "", escaped " not supported.
# Note that many environment variables that you would like to use
# may not be set by the time the module is called.
# For example, HOME is used below several times, but
# many PAM applications don't make it available by the time you need it.
#
#
# First, some special variables
#
# Set the REMOTEHOST variable for any hosts that are remote, default
# to "localhost" rather than not being set at all
#REMOTEHOST     DEFAULT=localhost OVERRIDE=@{PAM_RHOST}
#
# Set the DISPLAY variable if it seems reasonable
#DISPLAY                DEFAULT=${REMOTEHOST}:0.0 OVERRIDE=${DISPLAY}
#
#
#  Now some simple variables
#
#PAGER          DEFAULT=less
#MANPAGER       DEFAULT=less
#LESS           DEFAULT="M q e h15 z23 b80"
#NNTPSERVER     DEFAULT=localhost
#PATH           DEFAULT=${HOME}/bin:/usr/local/bin:/bin\
#:/usr/bin:/usr/local/bin/X11:/usr/bin/X11
#
# silly examples of escaped variables, just to show how they work.
#
#DOLLAR         DEFAULT=\$
#DOLLARDOLLAR   DEFAULT=        OVERRIDE=\$${DOLLAR}
#DOLLARPLUS     DEFAULT=\${REMOTEHOST}${REMOTEHOST}
#ATSIGN         DEFAULT=""      OVERRIDE=\@
session required pam_limits.so

cat /etc/environment

#
# This file is parsed by pam_env module
#
# Syntax: simple "KEY=VAL" pairs on separate lines
#

cat /etc/security/limits.conf

# /etc/security/limits.conf
#
#This file sets the resource limits for the users logged in via PAM.
#It does not affect resource limits of the system services.
#
#Also note that configuration files in /etc/security/limits.d directory,
#which are read in alphabetical order, override the settings in this
#file in case the domain is the same or more specific.
#That means, for example, that setting a limit for wildcard domain here
#can be overridden with a wildcard setting in a config file in the
#subdirectory, but a user specific setting here can be overridden only
#with a user specific setting in the subdirectory.
#
#Each line describes a limit for a user in the form:
#
#<domain>        <type>  <item>  <value>
#
#Where:
#<domain> can be:
#        - a user name
#        - a group name, with @group syntax
#        - the wildcard *, for default entry
#        - the wildcard %, can be also used with %group syntax,
#                 for maxlogin limit
#
#<type> can have the two values:
#        - "soft" for enforcing the soft limits
#        - "hard" for enforcing hard limits
#
#<item> can be one of the following:
#        - core - limits the core file size (KB)
#        - data - max data size (KB)
#        - fsize - maximum filesize (KB)
#        - memlock - max locked-in-memory address space (KB)
#        - nofile - max number of open file descriptors
#        - rss - max resident set size (KB)
#        - stack - max stack size (KB)
#        - cpu - max CPU time (MIN)
#        - nproc - max number of processes
#        - as - address space limit (KB)
#        - maxlogins - max number of logins for this user
#        - maxsyslogins - max number of logins on the system
#        - priority - the priority to run user process with
#        - locks - max number of file locks the user can hold
#        - sigpending - max number of pending signals
#        - msgqueue - max memory used by POSIX message queues (bytes)
#        - nice - max nice priority allowed to raise to values: [-20, 19]
#        - rtprio - max realtime priority
#
#<domain>      <type>  <item>         <value>
#

#*               soft    core            0
#*               hard    rss             10000
#@student        hard    nproc           20
#@faculty        soft    nproc           20
#@faculty        hard    nproc           50
#ftp             hard    nproc           0
#@student        -       maxlogins       4

# End of file
* soft nofile 1000000
* hard nofile 1000000

grep -r common-session /etc/pam.d/
returns nothing

Offline

#8 2023-05-26 16:06:30

loqs
Member
Registered: 2014-03-06
Posts: 17,733

Re: [Solved] Can not login after pam upgrade

The problem is the last line of /etc/security/pam_env.conf.

Offline

#9 2023-05-26 19:19:08

BrainyXS
Member
Registered: 2023-02-16
Posts: 9

Re: [Solved] Can not login after pam upgrade

Ok, thanks a lot, removing the last line of /etc/security/pam_env.conf worked! Thanks!

Offline

Board footer

Powered by FluxBB