OMG, is this ever a heinous bug. I was trying to reconcile users between two boxes, and so changing their UID's, including mine.
The stupid thing drops into a shell and tells me to edit a file which I can now not get to, and since Ubuntu does the root=no password thing, I am now locked out of fixing things. I'm going to have to take a server down and boot it with a rescue disk so I can change the file and regain access.
This is on a 9.04 box.
hacksaw@gerbils:/exports/homes$ sudo vipw
You have modified /etc/passwd.
You may need to modify /etc/shadow for consistency.
Please use the command `vipw -s' to do so.
hacksaw@gerbils:/exports/homes$ sudo vipw -s
sudo: uid 1000 does not exist in the passwd file!
hacksaw@gerbils:/exports/homes$ su
hacksaw@gerbils:/exports/homes$ su -
hacksaw@gerbils:/exports/homes$ ssh root@gerbils
You don't exist, go away!
OMG, is this ever a heinous bug. I was trying to reconcile users between two boxes, and so changing their UID's, including mine.
The stupid thing drops into a shell and tells me to edit a file which I can now not get to, and since Ubuntu does the root=no password thing, I am now locked out of fixing things. I'm going to have to take a server down and boot it with a rescue disk so I can change the file and regain access.
This is on a 9.04 box.
hacksaw@ gerbils: /exports/ homes$ sudo vipw gerbils: /exports/ homes$ sudo vipw -s gerbils: /exports/ homes$ su gerbils: /exports/ homes$ su - gerbils: /exports/ homes$ ssh root@gerbils
You have modified /etc/passwd.
You may need to modify /etc/shadow for consistency.
Please use the command `vipw -s' to do so.
hacksaw@
sudo: uid 1000 does not exist in the passwd file!
hacksaw@
hacksaw@
hacksaw@
You don't exist, go away!
vipw didn't used to be this dumb, what changed?