I accidentally modified the default shell program /bin/bash for my user in /etc/passwd. I didn't set a root password in my ubuntu server installation.

Now I can't even login. Is there anything I can do?


Boot up into a live disk, mount the partition and fix /etc/passwd :)


Or .. start your box in single user mode and modify your passwd file - ubuntu single user mode link.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.