Add www-data user to sudoers file (WANEM)


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.

Sources:

http://www.ogris.de/howtos/wanem.html

Advertisements
Tagged

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: