How to set root password on Amazon EC2 instance? [closed]
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 开发者_StackOverflow中文版11 years ago.
Improve this questionAt first, I SSHed into an instance as 'ubuntu' user, typed 'sudo -s', and it didn't ask me for the root password. Then I entered 'passwd' as 'root' user and typed twice the new password, and confirmed them.
But the next time I SSH into this instance as 'ubuntu' user, type 'sudo -s', and it still doesn't ask me for any password!
Am I missing something?
The instance runs Ubuntu 8.04(Hardy).
Have a look at /etc/sudoers
. There is defined whether you need a password (and if root's or your own one) for the diverse invocations of sudo
.
精彩评论