1

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?

Update

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

1

2 Answers 2

1

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>
2
  • maybe your solution works. But not for me, because I am not a sudoer, I am just a regular user, like all my group. Commented Dec 5, 2014 at 15:28
  • 1
    @amine perhaps you should mention your constraints in the question. Commented Dec 5, 2014 at 15:30
1

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

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.