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년 전2418회 조회
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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠