How to run privileged (sudo) commands without the password

TIP: If you want to avoid changing the sudoers file, you can create your own file instead. (See visudo comments for details: sudo visudo)

Replace sudo visudo command above with

sudo visudo -f /etc/sudoers.d/your_filename

where your_filename is the name of your file. It will be executed at the end of sudoers.

@lah7 : Thanks! Great for items I've added to the MATE Menu. :thumbsup:

1 Like