相关疑难解决方法(0)

如何在没有密码的情况下使用 sudo 运行应用程序?

...但仍然需要需要管理员权限的应用程序?

为了允许以下内容:

$ apache2ctl restart
httpd not running, trying to start
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

$ sudo !!
sudo apache2ctl restart             #no password asked
$                                   #works!
Run Code Online (Sandbox Code Playgroud)

作为参考,我在亚马逊的 e3 实例上看到了这个设置

任何的想法?

sudo authentication

41
推荐指数
3
解决办法
11万
查看次数

标签 统计

authentication ×1

sudo ×1