Centos Instance: Root & Centos user password

0

I launched a CentOS 7 1901-01 Lightsail instance and I am wondering about a few things.

If I try to use su - to become the root user, it asks me for my password (for the default Centos user).
I don't know what that password is. Is there one actually?

Second, is the root user enabled and does it have a password? Do I really need to use it, as I can always use the sudo?

Creating a new user for me from scratch - adding it to the wheel group - and stop using or removing the default Centos user, would that make sense?

已提问 5 年前2486 查看次数
2 回答
1

Try using 'sudo su -' instead.

I just spun up a Centos instance and was able to do 'sudo su -' to switch to the root user without needing a password.

profile picture
David G
已回答 5 年前
0

that worked for me too -thanks!

已回答 5 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则