揮発性のメモ2

http://d.hatena.ne.jp/iww/

webサーバからsudoを実行できない

CGIから、sudoを使って hogeユーザとしてコマンドを実行したいので

sudoers

www-data ALL = (hoge) NOPASSWD: ALL

としてみたが、実行できない。

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

[sudo] password for www-data:


原因が分かった