my notes online

home tags

Ubuntu: Sudo without password

11 Oct 2012

Sudo is a program that allows users to run programs with the security privileges of another user (normally the superuser, or root).

The /etc/sudoers file allows listed users access to execute a subset of commands while having the privileges of the root user.

Use visudo to edit /etc/sudoers. It can be edited manually, but it is recommended to use visudo to encure that the syntax is correct.

sudo visudo

Add Single User

Add this line at the end (change x2q to your username):


Add Group

Add this line at the end (change %sudo to your group name):


Press Ctrl-X to save your changes, and exit.

Ubuntu, Linux, Debian, and Sudo

comments powered by Disqus