Answer by AlexKing for change shell of a user from /bin/false to another
Try:sudo vigrIn the editor, change root's shell back to /bin/bash (It should be the last field on the first line)
View ArticleAnswer by xuhdev for change shell of a user from /bin/false to another
You can modify the file /etc/passwd if chsh doesn't work, by replacing the lineroot:x:0:0:root:/root:/bin/falsewithroot:x:0:0:root:/root:/bin/bash
View Articlechange shell of a user from /bin/false to another
I made a mistake of change the root shell to /bin/false, but when I want to change it back, I always got errorsudo chsh -s /bin/bash root[sudo] password: <input current user password>password:...
View Article
More Pages to Explore .....