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.
single user mode
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
2 years ago