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.

Start Your 7-Day Free Trial

Start your SpinupWP journey today and spin up your first server within minutes.

Start Your Free Trial

No credit card required

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.

You are already logged in

It looks like you are already logged in to SpinupWP.

Please log out of this account to continue.

Registration Successful

Thanks for registering for a new
SpinupWP account.

Before getting started, could you verify your email address by clicking on the link we just emailed to you?


Free Trial

Start Your 7-Day Free Trial

No credit card required. All features included.

By signing up to SpinupWP, you agree to our Terms and Conditions.
For privacy related information, view our Privacy Policy.