Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.
# User privilege specification
root    ALL=(ALL:ALL) NOPASSWD: ALL
apache ALL=(ALL:ALL) NOPASSWD: ALL
me ALL=(ALL:ALL) NOPASSWD: ALL

In Fedora both works:

http://localhost/test
echo shell_exec("sudo dmidecode | grep UUID"); // nothing shows to encrypt/decrypt licenses

php -r "..license..";
share|improve this question

1 Answer 1

up vote 5 down vote accepted

In Ubuntu, apache runs as the www-data user. If you want to use sudo without a password from a web page, you should probably limit the commands that it can run.

share|improve this answer
    
+1 You will really want to limit the commands scope. –  Marco Ceppi Oct 5 '11 at 21:54
    
So, how do we limit the commands that it can run? –  eegg Mar 31 at 22:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.