lost admin privelages on admin user

Asked by Dan

I was downloading "Digital Universe Atlas" and the computer got shut off without
shutting down when i rebooted i lost all admin privelages. I can get to recovery
mode but dont know what to do from there. I am new to linux.

                                                               any help would be appreciated.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Frode M. Døving
Solved:
Last query:
Last reply:
Revision history for this message
Frode M. Døving (frode) said :
#1

In recovery mode, try to run:
'adduser username admin'

Where username is your login name.

Then run 'visudo'
Make sure there is a line:

%admin ALL=(ALL) ALL

If it's not there, make one at the bottom.

Hit ctrl-x to exit. Answer yes to save changes.
Reboot and try to perform some admin task.

- Frode

Revision history for this message
Dan (appletondan) said :
#2

        Frode
thank you very much!
It worked wonderfully.

Revision history for this message
Frode M. Døving (frode) said :
#3

You're welcome.
Glad you got it working :)

- Frode

Revision history for this message
williamts99 (williamts99) said :
#4

Just wanted to say thank you very much for marking your support request as answered. I know that it might not seem like a big deal, but it sure does help us a lot.

Thank you very much for helping us help you.

Williamts99