How to set root password on Amazon EC2 instance?

First, I SSHed into the instance as the user of "ubuntu", typed "sudo -s", and he did not ask me for the root password. Then I entered "passwd" as the user "root" and entered the new password twice and confirmed them.

But next time, when I will use SSH in this instance as the user of "ubuntu", type "sudo -s", and he still does not ask me about any password!

Did I miss something?

Instance launches Ubuntu 8.04 (Hardy).

+4
source share
1 answer

See /etc/sudoers . Determines if you need a password (and if root or your own) for various sudo calls.

+5
source

All Articles