小编dat*_*ta9的帖子

sudo 命令没有密码提示

每当我发出命令 sudo apt-get install **它不会要求输入密码,我的管理员用户也不会。

如何让它提示输入密码?

我的 sudoer :

ubuntu:~$ sudo cat /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults    env_reset
Defaults    secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root …
Run Code Online (Sandbox Code Playgroud)

sudo

15
推荐指数
2
解决办法
4万
查看次数

标签 统计

sudo ×1