how can i know the password of root on ubuntu

i want to use the root,but have no password . i never set the password of root,what happned?

Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

@306044543: Did you receive the root password via email? Are you able to log in via ssh?

thank you: <br>I see the solution that password the root in terminal on internet? <br>I do command passwd root in terminal,but there is error that passwd <br>is invalid?Hao can I change the root password? <br>

<b>“… i never set the password of root,what happned?”</b> <br> <br>Unless you uploaded & selected an SSH key when you created your droplet, the root password would have been e-mailed to you. Check your SPAM folder, just in case.