小编ear*_*hae的帖子

如何启用sudo密码?

我刚刚在 Windows Azure 集群的虚拟机上安装了 Ubuntu 12.04。

默认情况下sudo不需要密码。

我想对所有sudo命令强制密码。

我该如何进行此更改?

以下是内容visudo

#
# 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"
Defaults timestamp_timeout=0

# Host alias specification

# User alias specification

# Cmnd alias specification

# …
Run Code Online (Sandbox Code Playgroud)

sudo password

2
推荐指数
1
解决办法
3794
查看次数

标签 统计

password ×1

sudo ×1