Ubuntu: Accidentally changed root user to nonexistent shell
Fresh3 days ago
Mar 15, 20264692 viewsConfidence Score0%
0%
Problem
I tried to change my user's shell, but used "sudo chsh", and changed the root shell to "bash" instead of "/bin/bash". Now when I try to change it I get "chsh: PAM authentication failed" and it seems like other things aren't working, either. This happens with recovery mode, too. What do I do to chan…
Error Output
~$ sudo su Cannot execute bash: No such file or directory
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Ubuntu: Accidentally changed root user to nonexistent shell
Low Risk
If you are able to login using your regular user, just change the root users shell directly: Find the line for you root user, usually the first one, and change the last part from to And you should be good to go. (NB: Replace gedit with whatever edit…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix