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개 답변
1
수락된 답변

"sudo passwd root" should work.

profile pictureAWS
답변함 2년 전
profile picture
전문가
검토됨 한 달 전
  • 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

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

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

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

관련 콘텐츠