开发者

How to set root password on Amazon EC2 instance? [closed]

Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 开发者_StackOverflow中文版11 years ago.

Improve this question

At 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜