2

The problem can be reproduced as follows:

  1. When I remove the password of an administrator account, "Log In without Password", I cannot use that account to authenticate.
  2. When I do something that requires authentication, I cannot use an admin without a password to authenticate. If I leave the password box blank without a password while choosing a non-password admin, authentication fails (in terminal or in GUI).

How to fix this problem?

Nanne
  • 8,625

3 Answers3

4

The answer, you don't. You will need to set a password in order to authenticate to do anything requiring authentication.

Unfortunately after the password has been removed you cannot even change your password as you must be able to authenticate in order to change your password in the settings / user account screen.

The fix:

  1. Change your password using Terminal.

    Click the windows key or click the dash button to go to the dashboard. In the search box type term and click on the program called terminal.

  2. Type who am i and press enter to verify you are logged in as the user that you want to change.

  3. Type passwd and press enter. It will then ask you what password you want to change it to. Enter your new password and press enter. Then it will ask you to enter your password again to verify. Enter your password again and then press enter. Your password will now be set and you will now be able to authenticate again by using your new password.

Eliah Kagan
  • 117,780
j0vian
  • 41
  • I think there is actually a way to do this. You can configure sudo to not prompt for a password (and that includes when it's used via its graphical frontends). I suspect you can configure PolicyKit to do the same thing, though I'm not sure (if I knew how I'd post this as another answer rather than a comment). Assuming that's configured, just disable screen-lock, enable automatic login, and make the password blank. (Normally it would be bad to have a blank password, but if sudo and PolicyKit succeed without password authentication, then that wouldn't be a problem.) – Eliah Kagan Jun 19 '12 at 00:28
0

Automatic login, "Login without Password," doesn't actually remove the password from your account--it simply fills it in for you when you log in. To authenticate (such as for gksu) you still type the same password you used to log in before.

Kerrick
  • 1,851
0

If you are asking how to restore the password to your account and/or add that account to the sudo user group, the answers to these other (duplicate?) questions may help.

I deleted my original user account. The new account has no password. How can I enable it?

How do I add myself back as a sudo user?

  • The OP's question is about how to make it so that all local authentication will work without prompting for a password--or, to put it another way, how to make it so that no local authentication is ever performed. (A proper answer to this question would have to explain how to make sudo work without a password, and PolicyKit as well.) – Eliah Kagan Jun 13 '12 at 08:50
  • @EliahKagan I'll take your word on it. It is hard for me to tell since the OP's question is not in the form of a question. Just two statements which describe how Ubuntu is (I assume) intended to work by design. – irrational John Jun 13 '12 at 09:00
  • Good point. Indeed, my interpretation may be mistaken. I do not recommend that you delete this answer (in case my interpretation is wrong or in case it's right but the OP also intended to ask for this information). – Eliah Kagan Jun 13 '12 at 09:06