1

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?

user9517
  • 115,471
  • 20
  • 215
  • 297
hollow7
  • 113
  • 2

2 Answers2

4

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

Daniel t.
  • 9,291
  • 1
  • 33
  • 36
3

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

mako_reactor
  • 398
  • 4
  • 11