1847180 Members
5050 Online
110263 Solutions
New Discussion

kill

 
SOLVED
Go to solution
j773303
Super Advisor

kill

How to let A user can kill B user process?
Thanks.
Hero
3 REPLIES 3
Michael Tully
Honored Contributor
Solution

Re: kill

You can't kill another users process unless you are root, or you have set an alternative access via sudo or an equivalent utility.
Anyone for a Mutiny ?
T G Manikandan
Honored Contributor

Re: kill

you cannot do that,if that would be possible then think of the consequence.

Only a user can kill his own process.

Root has all the privileges so it can do anything.

The best as suggested would be to use sudo to get that privilege.
Think twice before you do that!!
Rajeev  Shukla
Honored Contributor

Re: kill

By default it is not possible, but you can write a program which does a switch user to the user you want to kill the process of and then exit. Use setuid() to change the user id.