The Linux
sudo
command elevates privilege to root for a single command. By default, sudo
verifies user identity by asking for your password.
If your environment is secure and you will be typing the sudo
command often, you may want to disable this security feature.
To do so, you will need to modify the /etc/sudoers
file. This technique will reduce your Linux computer's security, so you may want to think twice before doing it. This is so important that there is a special command just for editing the sudoers
file. The command is visudo
Here are the steps:
sudo visudo
- Change the lines that say:
%admin ALL=(ALL) ALL %sudo ALL=(ALL:ALL) ALL
to%sudo ALL=(ALL:ALL) ALL %adm ALL=(ALL) NOPASSWD:ALL
- For fun, you can add this line to the bottom of the file.
Defaults insults
%sudo ALL=(ALL:ALL) ALL
allows all users in the sudo group to use the sudo
command. To allow non-password-prompting for sudo group members, change the line to %sudo ALL=(ALL:ALL) NOPASSWD:ALL
More information on the sudoers
file and its formatting can be found at:
12 / 2019