0

I need to add www-data to sudoers, and have it to be able to execute any command without a password. I know the security risks, but for this it is needed. I am running Debian.

Nate H
  • 1
  • 1
  • 1
    Possible duplicate of [How do I edit /etc/sudoers from a script?](https://stackoverflow.com/questions/323957/how-do-i-edit-etc-sudoers-from-a-script) – quantik Mar 17 '18 at 16:51

1 Answers1

-1

You can do it like this www-data ALL = NOPASSWD: ALL

Aman Chourasiya
  • 1,078
  • 1
  • 10
  • 23