How to change root password

What this solves

You need to change the root password on your VPS for security or because you forgot it.

While logged in as root

Run passwd. Enter the new password twice. Use a strong, unique password.

If you forgot the password

Use the provider’s rescue or recovery mode (e.g. from the client area), mount the disk, and reset the password in /etc/shadow or use passwd from rescue. We can guide you if you open a ticket.

Note: Prefer SSH keys over passwords; see “How to secure your VPS.”

When to contact support

If you’re locked out and rescue isn’t an option, we can help with a reset.

Related articles

Need help?

Open a support ticket and we'll assist you.

Open Support Ticket