Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Possible Duplicate:
a safer no password sudo?

I'm trying to do a physical to virtual using the "VMWare VCenter Converter Standalone". The Convert Machine Window provides a the option to provide source ip, username, password, and the OS family. It tries to query the remote machine with all these information, but then shows the message.

Unable to query the live Linux source machine. Please make sure that you can execute sudo without entering a password when logged in to the source machine over SSH as 'username'

How do I configure the 'username' account to do sudo without a password? (and err ... still sleep peacefully :P)

share|improve this question
    
Duplicate of: superuser.com/questions/213690/a-safer-no-password-sudo –  Wuffers Apr 5 '11 at 22:50
2  
I disagree that the linked superuser.com/questions/213690/a-safer-no-password-sudo is a duplicate. the linked question is asking about "is my password the problem...". this question is just asking. "how do you use sudo without password?" –  Trevor Boyd Smith Sep 15 '11 at 13:25
add comment

marked as duplicate by Wuffers, studiohack Apr 5 '11 at 23:01

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.

1 Answer

up vote 4 down vote accepted

In the sudoers file add the NOPASSWD: tag infront of the commands you want to be able to use.

If the user is in the admin group, and you want the user to run all commands without a password you want:

%admin ALL=(ALL) NOPASSWD:ALL

The admin line without the NOPASSWD: is probably already there - just insert the NOPASSWD: bit.

Obviously modify this for your own particular setup.

share|improve this answer
    
yeah ... worked. –  Tathagata Apr 5 '11 at 22:58
add comment

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