Permissions for some commands and not for others

2

Good morning everyone.

Maybe this is a basic question but I have a question on Linux that I could not find by searching on Google.

I have a Linux machine running a nginx and with two users: milestones and alex.

What I want is that frames can create service links in the / etc / systemd / system folder, start them, restart them and stop them but can not stop other services (such as nginx itself, for example ).

Already, alex must have access to the nginx -s reload command but can not access the nginx -s stop command.

How would the configuration of sudoers to allow this frame? And would this configuration be secure?

    
asked by anonymous 29.05.2018 / 14:46

0 answers