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 年前檢視次數 2473 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南