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.

Possible Duplicate:
Why does Ubuntu force users to create a password upon installation?

Cannot authenticate without a password It did not fix my problem. If I create an admin account without password in the first place, what should I enter in place of the password? Also, how to perform administrative actions (such as sudo or downloading apps from Ubuntu Software Center) without password? How to remove the password entirely from my admin accounts?

Note: In Windows 7, when you do not set a password or remove the existing password for an administrator, that administrator can be used to authenticate without a password. Leave the password blank and you can do anything.

share|improve this question

marked as duplicate by Bruno Pereira Jun 13 '12 at 20:20

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

3  
Short answer is that this is not Windows. askubuntu.com/questions/124773/… –  Elfy Jun 13 '12 at 10:24

2 Answers 2

This is a security feature. If your administrator (or 'root') account didn't have a password, it would be ridiculously easy for a virus or other malicious program to cause a lot of trouble. So, really, you shouldn't try to disable it.

If you're doing a lot of stuff using sudo in one terminal, you can always use sudo su - to go into administrator mode in that terminal, and then omit sudo in that session.

share|improve this answer

You should use a password! But if you want to avoid retyping it during a session (e.g. sudo) then try this

visudo

add the following line

 admin      ALL = NOPASSWD: ALL

Save and quit. This allows the user admin to run everything (sudo apt-get ...) without password

If you want that for a whole group of accounts, add them to a group, e.g. admin and visudo again this time with this line

%admin      ALL = NOPASSWD: ALL

This means any member of the admin GROUP is allowed to do everything without password.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.