How to add www-data to sudoers

If you want to add www-data to sudoers. To run sudo command on python or php. Just add ww-data on sudoers file.

sudo vim /etc/sudoers

Then add this at the end of the file:

www-data ALL=NOPASSWD: ALL

Please take note this is not recommended on production.

Add new comment