My problem: I cannot set my default shell for user 'student' on CentOS 7 to fish-shell. I installed fish-shell by downloading the .gz, configuring, make, make install.
output of which fish /usr/local/bin/fish
running su from the standard 'student' account, I am able to escalate myself to root, which fish is set as the default shell. But when I run
student@localhost ~> whoami root student@localhost ~> /root student@localhost ~> sudo chsh -s /usr/local/bin/fish student Changing shell for student. chsh: user attribute not changed: Invalid contents of lock `/etc/passwd.lock`
looking at /etc/passwd I can see no changes occured.
Any idea what I can do? It looks like the lock files are preventing me from proceeding.