本地系统管理员讲座

4 security command-line root password

我在Ubuntu控制台中输入了命令:

$ sudo mc
Run Code Online (Sandbox Code Playgroud)

它给了我这个:

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.
Run Code Online (Sandbox Code Playgroud)

并要求输入密码。它是什么?我只想root访问控制台。

raj*_*raj 5

  1. 您收到的消息是您第一次在给定帐户上运行“sudo”时显示的常见消息。将其视为某种警告,从现在开始您将以 root 身份运行,因此如果您犯了错误,可能会损坏系统。它不会在“sudo”的后续调用中显示。

  2. 您必须输入的密码是您从中运行“sudo”的用户的密码。

  • 注意:当您输入密码时,密码不会显示,它现在会显示对您输入密码的响应,但我向您保证**密码正在输入**。在这种情况下,缺乏输入响应并不意味着任何事情。 (3认同)