It's not necessary to reinstall, though if the frustration level gets higher than the reinstall time, you can do that. I'd go with Patb's advice: boot in "recovery mode", which puts you in a root shell on a text console in "single user" mode. File systems should be mounted, but services won't be running. To use sudo or gksu, the user has to belong to the admin group. So a good thing to do is:
Code:
useradd -G admin fooey
passwd fooey
Type [Ctrl-D] or exit and the system will continue booting to the normal graphic console. Log in as the temporary user fooey using the password you just set. User fooey will have sudo permission.
If you are comfortable with text editors, you can use vipw and vigr to fiddle with /etc/passwd (and /etc/shadow), /etc/group (and /etc/gshadow) by hand. If you are not a vi kind of guy, do first. If you need more specific advice, post the output from
Code:
cat /etc/passwd; cat /etc/group
Bookmarks