Yeah basically the title, I want to do that things from a app that can run Linux scripts per SSH. I only want to run these three and not ALL from systemctl with my basic user.
So thanks.
Yeah basically the title, I want to do that things from a app that can run Linux scripts per SSH. I only want to run these three and not ALL from systemctl with my basic user.
So thanks.
Create a Cmnd_Alias
in /etc/sudoers
like:
Cmnd_Alias APACHEADMIN = /usr/bin/systemctl start apache2, /usr/bin/systemctl restart apache2, /usr/bin/systemctl stop apache2
Then add a line for the user privilege:
jsmith ALL = NOPASSWD: APACHEADMIN