Enable Passwordless Sudo

When adding a new server to SpinupWP via the custom provider method you will be asked to specify the SSH user that will be used by SpinupWP to provision the server. This Linux user requires root privileges and must be able to run sudo commands non-interactively. If you see the following error, you need to enable passwordless sudo for the specified Linux user.

Passwordless sudo error

Using a sudo user, connect to the server via SSH. You could run visudo and modify the core sudoers file, but a better option on Ubuntu 20.04 is to add a new configuration file to the /etc/sudoers.d/ folder. Create a new file located here:


Add the following content:


To test that the settings have been applied, connect to your server via SSH using the passwordless sudo user and run the following command:

sudo -i

If the settings are correct, you should be switched to the root user without having to provide a password.

Although it’s possible to enable passwordless sudo for all Linux users, we do not recommend it for security reasons.

Ready to give SpinupWP a try?

Not sure if SpinupWP is the right fit for you? Send us an email at sudo@spinupwp.com and we’ll give you our no-BS opinion.

Subscribe to get the latest news, updates and optimizations in performance and security.

Thanks for subscribing 👍

To receive awesome stuff, you'll need to head to your inbox and click on the verification link we sent you.
Make sure to check your "spam" folder or your "promotions" tab (if you have Gmail).
If you're still having trouble, then messages us at sudo@spinupwp.com.