Enable sudo without password in Ubuntu/Debian

  1. Open the /etc/sudoers file (as root, of course!) by running:
    sudo visudo
    
  2. At the end of the /etc/sudoers file add this line:
    {username}     ALL=(ALL) NOPASSWD:ALL
    

Meta

Created:

Updated: 2020-09-14 13:09

References