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.

Here are my circumstances:

  • I am running Ubuntu 12.04.
  • I have one user account.

I absolutely hate the password requirement. How do I disable this requirement such that my Linux computer will behave more like Windows in this respect? I do not want to hear that I shouldn't this because it is not secure. This is my desire so the concern of security is effectively null and void.

share|improve this question
7  
Which password requirement? Your user's password or the administrative password? Also what do you mean with "more like Windows?" My windows machine has similar behavior to Ubuntu so if you could clarify that would be great! –  Jorge Castro Jan 2 '13 at 1:12
    
What do you mean? There's an option to login automatically. If you mean the password to do administrative tasks, there's probably ways around it but would not make sense to do it. You do not need to enter the password that often at all. –  marcusklaas Jan 2 '13 at 1:14
add comment

1 Answer

For the administrative password using sudo and sparing any lectures on why one would not want this...

Edit the sudoers file:

sudo visudo

Find this line:

%sudo ALL=(ALL) ALL

Change the line:

%sudo ALL=(ALL) NOPASSWD: ALL

Save and Exit. Voila! (Dont' shoot yourself in the foot, now. ;)

By the way, you can become root and just type the password once.

sudo su -

Now you ARE the root user, seeing no more password prompts. When you see guides referring to commands such as sudo some_command, just remove the "sudo" portion. In this way, you can choose to leave the security intact yet bypass it as you see fit.

If you are writing about your user account:

Open System Settings. Click on the User Accounts tile. Click the Unlock button and enter your password. Set the auto-login slider to the "on" position by dragging it to the right. Then click "Lock" to apply your changes.

share|improve this answer
    
Is there any way to do it without selecting auto-login? I've heard something about a blank password hash, though that would probably still require a password prompt. And can this be done without becoming the root user? –  Melab Jan 2 '13 at 3:18
    
@Melab One part is for admin access; one, for regular user acct. No, you cannot do the sudo part without having admin access. –  user8290 Jan 2 '13 at 20:45
    
+1 for the sudo su - tip. –  radj Feb 27 at 9:32
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.