Passwordless sudo

 

The Nutanix Calm product is great for automating the deployment of applications stacks. So I’ve been learning Calm by attempting to deploy some LEMP stacks and other application on Ubuntu Images. However I was stuck at trying to issue scripts which needed sudo elevation, being prompted for a secondary password is a pig when trying to script anything.

The quick answer to this is to make sudo passwordless.

You do this by creating a file inĀ /etc/sudoers.d/ (I called mine passwordless) and adding a line …

Replacing <username> with the user you wish to apply the passwordless sudo to.

That’s it, no more being prompted for sudo passwords.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.