I am in sudo group all right:
$ id uid=1002(molot) gid=1002(molot) groups=1002(molot),27(sudo),33(www-data)
In my sudores I seem to have appropriate setting:
sudo ALL=(ALL:ALL) NOPASSWD: ALL
and it is the last uncommented line there.
But when I try to
git pull, I'm asped to retype my password:
$ sudo -u www-data git --git-dir /var/www/.git --work-tree /var/www pull "origin" master [sudo] password for molot:
It is not a problem when I am logged in console, but it is unacceptable in scripts. So how can I allow anyone in sudo group to git pull as www-data without retyping password?
When I put my name directly:
molot ALL=(ALL) NOPASSWD: ALL
it works for me. But, obviously, not for marian or other users from sudo group. As far as I understood manual, both usernames and group names should work in first file.