I have a process that a user1 runs. And I need to grant all the group members the right to send some kill signal to it. So far, I always get this output:

myProcess(13919): Operation not permitted  
myProcess: no process killed  

From what I had found on the internet, Linux architecture is intended to not allow other users to send kill signals to a process. But, if I am ok with it, can I grant these rights?


As pointed out by muru, I should mention that my group and I are not sudoers.


The problem is limiting damage. You can get quite close with sudo. Consider this sudoers entry:

%group1 ALL = (user1) pkill -HUP <name of process>

Then members of group1 can do:

sudo -u user1 pkill -HUP <name of process>
  • maybe your solution works. But not for me, because I am not a sudoer, I am just a regular user, like all my group.
    – amine
    Dec 5 '14 at 15:28
  • 1
    @amine perhaps you should mention your constraints in the question.
    – muru
    Dec 5 '14 at 15:30

There is no permission structure for processes like there is for files. Thus you need tricks like sudo or a SUID / FSCAP binary.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.