Last mod: 2024.10.05

Using sudo without a password

Not everyone knows, but it is easy to deactivate password input for operations with sudo privileges.

Open terminal and type:

$ sudo visudo

Add to opened file line: Go to end file and add line:

# Allow members of group sudo to execute any command
your_username ALL=(ALL) NOPASSWD: ALL

Value your_username replace your username.

Save and exit: Ctrl+x and y.