Home / LinuxBash / sudo Without Password
To stop being prompted for a password when running sudo
commands.
Open the sudoers file whist ensuring you don’t lock yourself out due to syntax errors:
sudo visudo
Add the following rule for Your user (add this line at the end of the file):
<username> ALL=(ALL) NOPASSWD: ALL
eg.
martin ALL=(ALL) NOPASSWD: ALL
This page was generated by GitHub Pages. Page last modified: 25/04/03 09:12