linux终端上打不了密码,键入密码后,终端上没有任何显示 您所在的位置:网站首页 linux系统无法输入命令 linux终端上打不了密码,键入密码后,终端上没有任何显示

linux终端上打不了密码,键入密码后,终端上没有任何显示

2023-10-24 19:11| 来源: 网络整理| 查看: 265

问题描述

当我要在终端中安装程序时,需要输入密码:

[sudo] password for xxx:

但是,当我开始输入密码时,什么也没有发生。我该怎么办?

最佳解决办法

即使您输入密码时没有字符出现,您实际上也在输入密码。

因此,输入密码,然后点击Enter并查看魔术。

次佳解决办法

出于安全原因,在终端中没有密码反馈。阅读以下有关此问题背后原因的讨论以及为何不执行此问题:

在此讨论中,还给出了superuser对应问题的答案

通过编辑sudoers文件中的选项,有一个选项可以为sudo和仅sudo启用密码反馈。

Warning: The instructions below are for advanced users only. If something goes wrong when editing the sudoers file, and this file is inaccessible or malformed you will have effectively locked out yourself and any other administrator users of performing any administrative tasks in your system. It is not a good idea to do this on a productive system.

要在运行sudo命令时通过星号*启用密码反馈,我们必须使用以下命令编辑sudoers文件:

sudo visudo

然后,我们必须将pwfeedback添加到默认选项,如下所示:

Defaults



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有