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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ