我创建了一个新用户,adduser但是当我尝试从他的帐户 sudo 时,我得到了xxxx * is not in the sudoers file. This incident will be reported..
所以我开始篡改visudo命令......
我知道 root 帐户具有以下配置:
root ALL=(ALL:ALL) ALL
Run Code Online (Sandbox Code Playgroud)
但我不想为我的新用户复制这个...
我希望我的用户 xxxx 没有 root 访问权限,除非使用 sudo。
使用 sudo 时,我希望 xxxx 用户提示输入 root 密码而不是他自己的密码!!
谢谢
使用 debian 10
VM,仅 ssh