in a case of a deployment script (https://github.com/EasyCorp/easy-deploy-bundle/blob/master/doc/default-deployer.md#security-options) I need to run setfacl
from a distant machine that push code.
To do that in the sudoer file I've add for a specific user the right to run the command without password, but I would like do it for a full command:
username ALL=(ALL:ALL) NOPASSWD: /usr/bin/setfacl setfacl -RL -m u:"www-data":rwX var/cache/ var/log/
At the moment I'm forced to remove arguments of the command, because the full command is rejected. I've tried to add a \
to escape :
, the same for "
. But it don't work.
username ALL=(ALL:ALL) NOPASSWD: /usr/bin/setfacl setfacl
Thanks a lot