AmazonのEC2を利用して、Ubuntuサーバーを構築しましたが、
ubuntuユーザーがログインできて、root権限はありません。
教えてください。
ubuntuユーザーがログインできて、root権限はありません。
教えてください。

0
iQi - 面白いアプリを開発中
ubuntuユーザーとして、ログインできましたが、下記のコードを実行すれば、rootに切り替えることができます。
詳細について、下記の内容をご参考してください。
sudo -s
詳細について、下記の内容をご参考してください。
Please login as the user “ubuntu” rather than the user “root”.
ssh ubuntu@ (using your private key)
sudo -s (to become root)
emacs/vi /root/.ssh/authorized_keys
delete the lines at the begining of the file that say “COMMAND….” until you get to the words ssh-rsa
emacs /etc/ssh/sshd_config
set the variable “PermitRootLogin” to “without-password” (without quotes of course)
sudo /etc/init.d/sshd restart (bounce sshd)