I have to execute a php script from mozilla. In this script I need to kill a process, using the command sudo pkill nameofprocess. From terminal, it requires me the password, and all is ok. But from browser, I haven't the possibility to insert the password. Does it exist a way to avoid the password only for the command sudo pkill nameofprocess?
I tried to modify /etc/sudoers with sudo visudo, and I insert this line: user ALL=(ALL) NOPASSWD: /bin/kill , where user is my name. In fact, if I write from terminal sudo pkill nameofprocess, it doesn't require me the password.
But, nothing happen from browser. Any suggestion?