My user was reset back to a Standard user, how can I reset it back to Administrator?

Asked by Dennis Keane

I had installed Ubuntu 11.10 with my userid as Administrator. It has been set to Standard I no longer have root access. How do I recover my original userid permissions?

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Solved by:
Dennis Keane
Solved:
Last query:
Last reply:
Revision history for this message
Dennis Keane (dok-z) said :
#1

Additional Info: After installing Ubuntu 11.10 and applying updates, creating additional users... I was trying to install a Printer. I shutdown the computer and when I rebooted I was trying to work on the printer again when I noticed that I no longer had Administrator privileged. I tried to run some commands via a terminal (sudo) and got th following message: 'dok is not in the sudoers file. This incident will be reported.' When I looked at my account via the 'User Accounts' tool I noticed that I had been reassigned to a Standard user.

I have the Ubuntu 11.10 install CD, can I boot off of it and edit the sudoers file and get back my Administartor perms? Not sure which file to edit if I can...

Thanks Again

Revision history for this message
rodney (blueone74) said :
#2

cat /etc/passwd to see list of users and see if you entered something by error ..

Revision history for this message
Dennis Keane (dok-z) said :
#3

I checked /etc/passwd , didn't see anything odd. I booted from my install CD and created an Administrator account, then launched a terminal session. Mounted my hard drive( the one with the Unbuntu installation I want to fix).

I was able to cd into the etc directory of the HD and issue the following cmd: sudo visudo sudoers However I'm not sure what to enter to regain my Administrator privileges... Not familiar with sudo, I use RBAC.

I'll see if I can find some hints online, unless someone could send me the info.

I tried to circumvent it by adding my user to the root group in /etc/group , but it did nothing for me...

Thanks for the response..

Revision history for this message
Dennis Keane (dok-z) said :
#4

Booted from install CD, created Administator user, mounted HD with Ubuntu install. Edited the sudoers file on the HD, sudo visudo -f sudoers, added line <userid> ALL = (ALL:ALL) ALL made no differance, my userid is still a standard user...

Revision history for this message
Dennis Keane (dok-z) said :
#5

Problem solved... Booted from install CD added my userid to the sudo group. Then booted from HD and added another user administrator then corrected my userid...

Revision history for this message
rodney (blueone74) said :
#6

Awesome !! glad to see you fixed it ....