Empty password, Sudo wont let me set a new one.

Asked by Joseph Harrietha

So I've decided to give Ubuntu a spin after leaving it when Unity was introduced, and I have to say that I'm fairly pleased. I was playing with system settings and looking at options when my fiancee wants to play with it, so she sets up her accounts with a empty password and plays around, and she likes it. So, since this is our main machine, I want to put a password on her account, (she can change it later, its just a security thing since shes listed as an admin).

So, I go to the System settings and try to change it... but it wont let me put "current password" blank, I tried to unlock it, but gsudo won't accept a blank password. My first instinct is the command line, but sudo won't accept it blank there. I'm about to try and force root by rebooting into run level 1, but I doubt that will work since its a major hole that should be fixed on any modern distro.

Any options?

EDIT: Forcing run level one worked..... and now her keyring isn't being unlocked (she must have set a password, then erased it) ... Really? Over a year and nothing has changed. Ubuntu still hasn't fixed simply issues like this? .... *sigh*, sorry for the rant. Heres my solution:

At the grub menu, press "e" on the while highlighting your chosen boot entry, add a "1" after the "ro" on the line that starts with "linux" ... press f10 and say hello to runlevel one

do passwd username , then telinit 5.

Mission Completed, RTB.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu sudo Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Alessandro Menti (elgaton) said :
#1

There is a currently opened bug for that: <https://bugs.launchpad.net/ubuntu/+bug/882255>. I'll try to reproduce and confirm the bug in these days.

Revision history for this message
Joseph Harrietha (nictrasavios) said :
#2

I believe my thread has a little more detail, including what I actually tried, and confirmation that I tried every known solution, GUI and command line. It also includes a fix (that is a way larger security hole then an empty password). So, I find my post would be more useful for those looking for a solution in the time until this is fixed.

Revision history for this message
ahambidge (ahambidge) said :
#3

Hello,

Check this link:

http://www.psychocats.net/ubuntu/resetpassword

Regards,

Allan :)

Revision history for this message
Alessandro Menti (elgaton) said :
#4

@Joseph: Thanks, as soon as the issue is reproduced I'll post a comprehensive comment including your solution.

Revision history for this message
Alessandro Menti (elgaton) said :
#5

Sorry for the late reply.

I have reproduced the issue and confirmed the bug report I linked earlier - the Ubuntu developers will now work on it.

At the moment, the only solution is using a non-empty password.

Thanks anyway for your input!

Can you help with this problem?

Provide an answer of your own, or ask Joseph Harrietha for more information if necessary.

To post a message you must log in.