Package: passwd Version: 1:4.12.3+dfsg1-1 Severity: important X-Debbugs-Cc: najibbak...@gmail.com
Dear Maintainer, I have just noticed this issue on chsh that I would like to report to you, including a solution that I would like to mention. ---------------------- # chsh Changing the login shell for root Enter the new value, or press ENTER for the default Login Shell [/bin/zsh]: zsh chsh: Warning: zsh does not exist exit $ sudo chsh Password: chsh: PAM: Authentication failure` ----------------------- The problem here, is that chsh has accepted "zsh" without checking first, if that path exists. After exiting "root" it is not possible to login back. The solution is to edit /etc/passwd from this: root:x:0:0:root:/root:zsh to this: root:x:0:0:root:/root:/bin/zsh Best regards, -- System Information: Distributor ID: Kali Description: Kali GNU/Linux Rolling Release: 2022.3 Codename: kali-rolling Architecture: x86_64 Kernel: Linux 5.18.0-kali7-amd64 (SMP w/3 CPU threads; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages passwd depends on: ii libaudit1 1:3.0.7-1.1 ii libc6 2.34-4 ii libcrypt1 1:4.4.28-2 ii libpam-modules 1.5.2-5 ii libpam0g 1.5.2-5 ii libselinux1 3.4-1+b2 ii libsemanage2 3.4-1+b2 Versions of packages passwd recommends: ii sensible-utils 0.0.17 passwd suggests no packages. -- no debconf information