root登录Ubuntu的VM在Azure上 [英] Root login Ubuntu VM on Azure

查看:305
本文介绍了root登录Ubuntu的VM在Azure上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从Azure的VM的Azure库安装了Ubuntu LTS服务器14.04。
登录由天青与我的密码创建为标准的azureuser。
更改root密码:

Installed Ubuntu Server LTS 14.04 from Azure library on Azure VM. Logged in as standard "azureuser" created by Azure with my password. Changed root password:

sudo passwd root

如果我试图登录为根:

Access denied

我怎么错过?
是的,密码是正确的。

What do I miss? And yes, the password is correct.

推荐答案

在默认情况下,Ubuntu的禁用root帐户。由于根godmode,禁用它意味着所有与试图打破root帐户自动脚本黑客的是在浪费自己的时间。

by default, Ubuntu disables the root account. Since root is godmode, disabling it means that all of the hackers with automated scripts that try to break the root account are wasting their time.

我强烈建议反对这个(原因有很多,这里有一些:<一href=\"http://askubuntu.com/questions/16178/why-is-it-bad-to-login-as-root\">http://askubuntu.com/questions/16178/why-is-it-bad-to-login-as-root)但是,这些步骤这样做的过上askubuntu.com

I highly recommend against this. (There are many reasons, here are some: http://askubuntu.com/questions/16178/why-is-it-bad-to-login-as-root) However, the steps to do so are Over on askubuntu.com

据该网页,解开您必须执行 sudo的passwd文件-u根 root帐户。重新锁定root帐户,使用须藤的passwd -l根

According to that page, to unlock the root account you must execute sudo passwd -u root. To relock the root account, use sudo passwd -l root

要重申:这是有点儿一个坏主意。一个更好的解决方案是创建一个具有无限的权限只在什么您需要范围的新用户。 Root是godmode;如果你搞砸了的东西太多对你不好。一个提升的用户为你的范围,在另一方面,只能够摧毁它访问...不是你的整个系统。

To reiterate: this is kinda a bad idea. A better solution would be to create a new user that has unlimited permissions ONLY WITHIN THE SCOPE OF WHAT YOU REQUIRE. Root is godmode; if you screw something up too bad for you. An elevated user for your scope, on the other hand, would only be able to destroy what it has access to...not your entire system.

这篇关于root登录Ubuntu的VM在Azure上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆