I have recently configured a Symfony 3 site which involved me to set up some permissions on the /var folder. I had to do the following:
$ HTTPDUSER=`ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1`
$ sudo setfacl -R -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX var
$ sudo setfacl -dR -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX var
This added the necessary permissions,
but now I get the following message every time I use the sudo command.
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
[sudo] password for user:
This usually is sent only the first time a user uses sudo.
Also, I used to be able to put my password in for sudo once and it would expire after some time (and then I would have to re-enter it again).
Now I get both the massage and prompt for password every time.
Is there a way to fix this?