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?

4
  • I'm probably the last to understand, but... Are you asking how to create/change an account that doesn't require a password to log in but you then have a password to enter when you want to change the system with sudo, gksudo, etc? Or how to have an account that doesn't require a password to either login or to use sudo? Jun 13, 2012 at 13:49
  • but even if there is no answer, surely that doesn't mean a duplicate should be opened?
    – Nanne
    Jan 18, 2013 at 21:41
  • thank you so much! I wish i had seen your post two hours earlier!
    – user252286
    Feb 25, 2014 at 19:52

3 Answers 3

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.

1
  • 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.) Jun 19, 2012 at 0: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.

1
  • That's the "automatic login" option. "Login without a password" is different. Jan 17, 2013 at 21:34
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?

3
  • 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.) Jun 13, 2012 at 8: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. Jun 13, 2012 at 9: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). Jun 13, 2012 at 9:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .