小编mfx*_*x28的帖子

sudo:需要终端读取密码;使用 -S 选项从标准输入读取或配置askpass helper

我目前在浏览器中收到此错误。我不想通过 php 执行脚本,但不知怎的,我通过打印得到了这个echo shell_exec (...) 2>&1

sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
Run Code Online (Sandbox Code Playgroud)

我已经添加了 -S 并得到了这个:

[sudo] password for www-data: sudo: no password was provided
Run Code Online (Sandbox Code Playgroud)

我已经将自己添加进去了sudoers,但仍然没有解决方案。

command-line sudo scripts

9
推荐指数
1
解决办法
5万
查看次数

标签 统计

command-line ×1

scripts ×1

sudo ×1