Get/Reset root password on a Linux EC2 instance

0

I am user accessing AWS through Okta SSO. I created a Linux EC2 instance and am accessing it using SSH with a key-pair. sudo helps most of the time but for one specific task I need root password but I don't have it (never had). Is there a way to get it or reset it?

1 Resposta
1
Resposta aceita

"sudo passwd root" should work.

profile pictureAWS
respondido há 2 anos
profile picture
ESPECIALISTA
avaliado há um mês
  • I have the same or similar problem. Not on my instance:

    [cloudshell-user@ip-10-6-67-43 ~]$ sudo passwd root sudo: passwd: command not found

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas