Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

ubuntu Newbie - I install OS using one account and then later created a second account made administrator with auto login and no password, then I logged in using new account and deleted old account. Now when ever I go to do anything it wants elevation and no matter what you type in the password field wont work. Any suggestions outside of scrapping it and installing Windows?

share|improve this question
    
If you're looking for something less secure that won't bother you with passwords then Windows is the way to go. Better still is give Ubuntu another try by reinstalling and go with the default setup, until you are comfortable making changes. –  Tom Brossman Jun 14 '12 at 7:17
add comment

1 Answer

You are going to need add the new user to the "sudoers" file (or the admin group). You are probably running into a situation where this new user doesn't have permission to run the "sudo" command.

You are going to need to get to a root shell. This link will show you how: http://www.psychocats.net/ubuntu/resetpassword/

That ^ is for resetting a password, but it describes how to get to the root prompt.

Once you have your root promt you can refer to this link: How can I add a new user as sudoer?

More specifically (from said post):

sudo adduser <username> admin

Then reboot the machine:

init 6

Run that ^ at the root prompt. Let it boot normally, log in as the "new" user and give it a shot. You should be able to "elevate" (sudo) now.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.