FS#77404 - could not login after update (zsh removed out of /etc/shells)
Attached to Project:
Arch Linux
Opened by kmille (kmille) - Monday, 06 February 2023, 09:36 GMT
Last edited by Toolybird (Toolybird) - Tuesday, 07 February 2023, 03:12 GMT
Opened by kmille (kmille) - Monday, 06 February 2023, 09:36 GMT
Last edited by Toolybird (Toolybird) - Tuesday, 07 February 2023, 03:12 GMT
|
Details
Hey,
yesterday's update to bash 5.1.016-3 broke my system. After the update/reboot, I couldn't login anymore. The autologin didn't work. lightdm appeared and even if I entered the right password, login failed. I'm using zsh as login shell and it was not listed in /etc/shells after the update. /etc/shells before the update kmille@linbox:etc cat shells # Pathnames of valid login shells. # See shells(5) for details. /bin/sh /bin/bash /usr/bin/git-shell /bin/zsh /usr/bin/zsh /etc/shells after the update kmille@linbox:scripts cat /etc/shells # Pathnames of valid login shells. # See shells(5) for details. /bin/sh /bin/bash /bin/rbash kmille@linbox:etc cat /etc/passwd| grep kmille kmille:x:1000:1000::/home/kmille:/usr/bin/zsh The "error" message was not really clear kmille@linbox:etc journalctl -b -2 -u lightdm Feb 05 22:43:59 linbox systemd[1]: Starting Light Display Manager... Feb 05 22:43:59 linbox systemd[1]: Started Light Display Manager. Feb 05 22:44:01 linbox lightdm[1115]: pam_succeed_if(lightdm-autologin:auth): requirement "user ingroup autologin" was met by user "kmille" Feb 05 22:44:01 linbox lightdm[1115]: gkr-pam: no password is available for user Feb 05 22:44:04 linbox lightdm[1130]: pam_unix(lightdm-greeter:session): session opened for user lightdm(uid=975) by (uid=0) Feb 05 22:44:04 linbox lightdm[1179]: pam_systemd_home(lightdm:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found. Feb 05 22:44:17 linbox lightdm[1179]: gkr-pam: unable to locate daemon control file Feb 05 22:44:17 linbox lightdm[1179]: gkr-pam: stashed password to try later in open session Feb 05 22:44:19 linbox lightdm[1188]: pam_systemd_home(lightdm:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found. Feb 05 22:44:23 linbox lightdm[1188]: gkr-pam: unable to locate daemon control file Feb 05 22:44:23 linbox lightdm[1188]: gkr-pam: stashed password to try later in open session Feb 05 22:44:25 linbox lightdm[1191]: pam_systemd_home(lightdm:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found. Feb 05 22:46:06 linbox lightdm[1191]: gkr-pam: unable to locate daemon control file Feb 05 22:46:06 linbox lightdm[1191]: gkr-pam: stashed password to try later in open session Feb 05 22:46:08 linbox lightdm[1445]: pam_systemd_home(lightdm:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found. Feb 05 22:46:52 linbox systemd[1]: Stopping Light Display Manager... Feb 05 22:46:53 linbox lightdm[1072]: Failed to get D-Bus connection Feb 05 22:46:53 linbox systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE Feb 05 22:46:53 linbox systemd[1]: lightdm.service: Failed with result 'exit-code'. Feb 05 22:46:53 linbox systemd[1]: Stopped Light Display Manager. Feb 05 22:46:53 linbox systemd[1]: lightdm.service: Consumed 3.780s CPU time. Problem causing commit? https://github.com/archlinux/svntogit-packages/commit/7738aa2694533b52b8581ea60a810f27f8a863a8 Can you tell me what went wrong on my system? Thanks! |
This task depends upon
Closed by Toolybird (Toolybird)
Tuesday, 07 February 2023, 03:12 GMT
Reason for closing: Not a bug
Additional comments about closing: See comments
Tuesday, 07 February 2023, 03:12 GMT
Reason for closing: Not a bug
Additional comments about closing: See comments
https://wiki.archlinux.org/title/Pacman/Pacnew_and_Pacsave#Managing_.pac*_files
backup=(etc/bash.bash{rc,_logout} etc/skel/.bash{rc,_profile,_logout})
2. /etc/shells is owned by filesystem 2023.01.31-1
Point is never just blindly overwrite a live file with a pacnew. Always diff/merge manually.