I can't change my bash shell to fish with chsh, because it asks for a password, which isn't my root password, and after I type something in I get this: chsh: PAM: Authentication failure
This is my /etc/pam.d/chsh configuration file:
#
# The PAM configuration file for the Shadow `chsh' service
#
This will not allow a user to change their shell unless
their current one is listed in /etc/shells. This keeps
accounts with special shells from changing them.
auth sufficent pam_shells.so
This allows root to change user shell without being
prompted for a password
auth sufficent pam_rootok.so
The standard Unix authentication modules, used with
NIS (man nsswitch) as well as normal /etc/passwd and
/etc/shadow entries.
@include common-auth
@include common-account
@include common-session
My /etc/shells file contains /bin/fish and /usr/bin/fish too and it still asks for a password. I also know my sudo password, but after I type it in, it asks for another one, that I don't know. Like this:
gergo@odin:~$ sudo chsh -s /usr/bin/fish
[sudo] password for gergo:
Password:
chsh: PAM: Authentication failure
Please if anyone can think of something tell me.
sudowants the user's login password. Readman sudo. – waltinator Jun 21 '23 at 00:44man chsh. For security reasons,chshwill only let you change to a shell listed in/etc/shells.grep fish /etc/shellsto see. If it's not there, add it viatype -p fish | sudo tee -a /etc/shells. – waltinator Jun 21 '23 at 04:57/bin/fishand/usr/bin/fishtoo and it still asks for a password. I also know my sudo password, but after I type it in it asks for another one, that I don't know. Like this:gergo@odin:~$ sudo chsh -s /usr/bin/fish [sudo] password for gergo: Password: chsh: PAM: Authentication failure– gfejer Jun 21 '23 at 13:14