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?

demandé il y a 5 ans2418 vues
2 réponses
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
répondu il y a 5 ans
0

that worked for me too -thanks!

répondu il y a 5 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions