I want to modify sudoers
so that users in the group www-data
can switch to the user www-data
without a password. I know it is possible, but I don't want to break my system. Here's what I have so far:
%www-data: ALL=NOPASSWD: /usr/bin/sudo -u www-data
But I am not sure this will work. My purpose in doing this is to let the permissions in /var/www/
remain 755
and yet allow the group to make changes. Otherwise Drupal and other CMS systems send out warnings.