Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I set administrator password to blank. Now, I can't install new programs (message see in title), or change the admin password ("change" button grayed out). I tried a suggested fix from inside the terminal, but can't type anything into the sudo authentication field.

share|improve this question
The sudo authentication field should stay completely blank as you type. It never displays asterisks, even – hexafraction Nov 24 '12 at 0:52
How did you set the administrator password to blank? "administrator" is a term used on Windows, on Linux we have a root user, and users with administrator privileges, so it's unclear what you mean. – Flimm Nov 26 '12 at 14:33

OK, there's two parts to this. First, to answer the question you asked:

Reboot into single user mode (see if you don't know how) and set the password for root.

However, I don't think that will solve your actual problem. It sounds like the real problem is that the account you normally log in as is not a member of the sudo group - the root account on Ubuntu normally does not have a password, and is not allowed to log in directly. So, instead, I would recommend that you boot into single user mode as outlined above, then issue the following commands:

adduser youraccountname sudo
passwd youraccountname
shutdown -r now

This will make sure that your user is allowed to become root, and will make sure that your user has a password which you can use when prompted. Once the machine finishes rebooting (the third command there), everything should be back to normal.

share|improve this answer

If you didn't ever set up a password you do not have to recover it but you just have to create it in System settings/User Account. There, click on Password.

So, let's create a new password that you will use as administrator for upgrading, installations and others. In few words, if you didn't ever create a password, create your password and use it when required.

Greetings, Bagsmi.

share|improve this answer
He can't run it as root unless he's in single user mode, chroot or another root shell... – Dominic Hayes May 1 at 16:38

Your Answer


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.