On a Digital Ocean droplet, the web console fails to authenticate if you’ve disabled the root account because it defaults to the root user as the os_user parameter:
hxxps://cloud.digitalocean.com/droplets/xxxxxxxx/terminal/ui/?os_user=root
Is there a way to set the desired non-root user on the server or an account setting? You can do manually after the auth failure but perhaps there’s a better way.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
Hi there,
As far as I am aware, there is no account-level setting to change the default os_user for the web console right now. It always defaults to root.
The manual workaround you already found is the way to go: after the auth failure, edit the URL and replace os_user=root with your actual username:
https://cloud.digitalocean.com/droplets/xxxxxxxx/terminal/ui/?os_user=youruser
Not ideal, but it works. You can bookmark that URL with your username already in it to save the extra step each time.
This is worth submitting as a feature request at https://ideas.digitalocean.com. A simple account or Droplet level setting for the default console user would be a reasonable addition!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.