By lawrencem
When I try logging in to the console after using a new root password, I’m logged out again immediately. Why does this happen?
I’m able to reset the password in the control panel, and can log in to reset it. Once it’s changed, I just get this loop where I briefly see the Ubuntu login header before being logged out:

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!
Did you find a solution?
I have the same issue. The technical centre has been unable to help me out so far unfortunately.
The most likely explanation is that root’s .profile or .bashrc file contains or indirectly runs the command exit or logout. You can fix this by SSHing in to your droplet with a specific command and thus bypassing Bash so that you get a chance to repair the damage; e.g., ssh root@IP_ADDRESS_OF_YOUR_DROPLET vim .profile will connect to your droplet and open .profile directly without invoking Bash.
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.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.