Sudo without password

Use the following line (in /etc/sudoers) to sudo without having the system to prompt without password.

# User privilege with no password
varun.verma     ALL=NOPASSWD:ALL

When multiple entries match for a user, they are applied in order. Where there are multiple matches, the last match is used (which is not necessarily the most specific match). Therefore, it is important that this statement must be the last line of the file or beyond the group permission.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s