I am trying to give run some "sh" scripts from a php interface. In order to do this I need to give root permissions to "www-data". In order to do this I have ran "sudo visudo" and I have added the following line:
"www-data ALL=NOPASSWD: /var/www/html/scripts/"
It seems that it works, but I am not positive that this is correct.
Do I need to specify each file or I can specify a whole directory ?
Thank you !