1748265 Members
4287 Online
108760 Solutions
New Discussion юеВ

Re: Remove user process

 
SOLVED
Go to solution
j773303
Super Advisor

Remove user process

Is it possible allow normal user to remove other users process except root ?

Thanks.
Hero
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor
Solution

Re: Remove user process

Hi:

No, unless you are 'root', the process receiving a 'kill' must be belong to the user sending the signal.

Regards!

...JRF...
A. Clay Stephenson
Acclaimed Contributor

Re: Remove user process

The short answer is no although the answer actually is no, unless the effective user id is zero. If you stop and think about it a moment you would realize that this is an extremely good idea because the alternative is that any user could kill any other user's processes.
If it ain't broke, I can fix that.
Rajeev  Shukla
Honored Contributor

Re: Remove user process

Thats right, its a good idea to look at the security feature as not to allow to kill the proccess owned by other user unless you are superuser(uid=0)

A user can kill all proccess he owns but not proccess owned by someother user.
j773303
Super Advisor

Re: Remove user process

Hi Expert,
How about HP Porcess Resource Manager has this feature?

Thanks,
Hero
Rajeev  Shukla
Honored Contributor

Re: Remove user process

I dont recall, neither would HP PRM have this feature.
Just imagine, if that happens then anyone could kill anyones proccess and make the system instable. Not possible under UNIX unless you write your own code to either switch user to the proccess owner or sudo can do this for you.

Cheers
Rajeev