HomeLinuxThe right way to Disable the sudo Password in Linux Mint 21

The right way to Disable the sudo Password in Linux Mint 21


sudo (Tremendous Consumer Do) permits us to execute the system instructions with root privileges. Everytime you execute any command within the terminal with sudo it would ask you to enter your account password. That is added as a prefix to the instructions that solely superusers can run and are executed with correct authentication. However there’s a method for working the sudo instructions with out the foundation account password, it’s only advisable if you’re the one consumer in your system in any other case it would danger your Linux Mint safety.

The right way to Disable the sudo Password in Linux Mint 21

Each time you employ the sudo command the system will ask for the password earlier than executing the command. If we run the straightforward replace command then it would ask for the password as proven under:

You may configure the sudo to by no means ask on your password by following the under given steps:

Within the terminal sort the next command to entry the sudoers file:

A file will open, within the backside of the file search for includedir /and so on/sudoers.d and add the under given traces on the finish, substitute the <username> with your personal username in your system:

@includedir /and so on/sudoers.d

<username> ALL=(ALL) NOPASSWD:ALL

Save and shut the file, after making these modifications you may execute the sudo command within the terminal with out prompting with a password. Affirm the saved modifications by executing the system replace command with sudo privileges:

Observe: These modifications are just for the terminal, you continue to need to enter the password whereas putting in the instruments from the Software program Supervisor.

The right way to Re-enable the sudo Password in Linux Mint 21

In case you ever need to re-enable the sudo password within the terminal you may once more edit the sudoers recordsdata and take away the traces you may have added on the finish of the file.

Backside Line

Enabling and disabling the sudo password in Linux Mint 21 is easy as you simply need to make a number of modifications within the sudoers file. These modifications will now cease you from being requested on your password for all of the instructions working within the terminal.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments