Hi. In this post I´ll show you how to add the www-data user to the sudoers file. The reason why I am blogging about this is the following: If you followed my Instructions to install WANEM like in my previous post “Installation of WANEM” you will notice that you can not apply settings to your WANEM machine via the configuration website. But why is that so?
Well, you can not apply settings to your WANEM machine via the configuration website because the user www-data who wants to apply your settings for you on the machine does not have the permissions to do so. This can be a very annoying mistake so I decided to write down the solution.
I will show you how you can solve this problem.
Before we begin I recommend that you make a backup of your current sudoers file.
sudo cp /etc/sudoers /etc/sudoers-old
Now we need to edit it.
sudo nano /etc/sudoers
You need to add the following line to the sudoers file to grant the www-data user the appropriate permissions:
www-data ALL=(ALL) NOPASSWD: ALL
That´s it. Now all you need to do is reboot your machine and try to apply your settings. It should work now.