Skip to main content

sudo without password

(2017-05-30)

Problem

I don't want to get prompted for sudo access.

Solution

  1. Run visudo

  2. At the end of the file, add:

    myusername ALL=NOPASSWD: ALL

For some reason it doesn't work if you add it before the end of the file.

(Learned, later: the last definition for something seems to be the one that is applied; so my issue above was that the entry for myusername was being over-ridden by something in one of the gratuitous #includes in the file.)