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:
<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.