Oops! I deleted my admin user
Oh dear I'm snookered! Temporarily I hope!
I added a new user admin and then deleted him
I hadn't realised that admin was so pecial and now of course my administrator account no longer has administrator priveledges as although /etc/sudoers has the entry saying members of admin group can use the sudo command my administrator account is no longer associated with group 'admin' as a consequence, I suppose od deleting user 'admin' (I hope my understanding is correct!).
For this reason too I can't get into the visual 'user and groups' program to make sure 'admin' exists and that my administrator is a member of this group.
Would someone be kind enough to tell me how I restore this relationship using commands ... presumably in single user mode at root's prompt?
Many thanks in anticipation.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Iain Houston
- Solved:
- Last query:
- Last reply: