I want the members of a certain group to kill python.
pidof python | xargs kill
This is no problem when python has been started by themself. But when root has started a python process than the users of the group can't kill python.
I can fix this to allow the group members to use
kill without password.
%nohup ALL=(root) NOPASSWD: /usr/kill
But now the group members can kill each process. I only want them to kill python.
How can I give permission to a group to kill only a specific proces that has been started by root?