-1

I have new created EC2 instance in aws, and able to login as EC2-user using private key but want to login as root to install packages. Not able to switch as root tried sudo - but it asking for password, I didn't creat any password for root yet. I am stuck here

  • Check this guide. – CodeIt Jan 5 '18 at 10:46
  • It's working now, need to create password for root by typing "passwd" command and set password for root – Harish Sundaram Jan 6 '18 at 9:13
  • Post it as answer. – CodeIt Jan 6 '18 at 13:59
0

It's working now, need to create password for root by typing "passwd" command and set password for root. To switch user "su root" command.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.