# sudo is limited to hestia scripts
admin ALL=NOPASSWD:/usr/local/hestia/bin/v-restart-service
admin ALL=NOPASSWD:/usr/local/vesta/bin/*
admin ALL=NOPASSWD:/usr/local/hestia/bin/*
On behalf of the user, I execute the command:
/usr/local/hestia/bin/v-restart-service apache2
Here’s the answer
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to restart ‘apache2.service’.
Authenticating as: root
Password:
I thought so too, and tried to execute the commands first, but without success, I decided to try to add a specific command, what could be wrong? I have another admin.save file next to the sudoerd.d/admin file, maybe this is the issue? but there are also these commands
Thanks for the clarification, I’ll try. I’m just going to deploy updates through the user using the deployer tool, and I would need to restart Apache after deploying, you say after one password entry it will not ask for more, or will it happen every time?