1833017 Members
2324 Online
110048 Solutions
New Discussion

kill question.

 
SOLVED
Go to solution
Stefano_65
Regular Advisor

kill question.

hi everybody, here my question:
I've 2 users, same group. user1 run a process, and user2 needs to kill it. How can I do that?

thanx
s.
5 REPLIES 5
Pete Randall
Outstanding Contributor
Solution

Re: kill question.

Only root can kill another user's process. You would have to write a root-owned script that would run with the suid bit set in order for user1 to kill user2's process.

The alternative is to install and setup sudo.


Pete

Pete
RAC_1
Honored Contributor

Re: kill question.

sudo tool

Get it here.
http://hpux.connect.org.uk
There is no substitute to HARDWORK
Stefano_65
Regular Advisor

Re: kill question.

I'm thinking about sudo, but I don't want give to user2 the kill feature on every proc..

thanx anyway..
s.
Yogeeraj_1
Honored Contributor

Re: kill question.

hi,

the group concept is only valid for files and directories. When comming to processes, you can only kill your own process.

Only root can kill any process or you can use sudo as mentioned by previous posters

good luck

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Arunvijai_4
Honored Contributor

Re: kill question.

Hi Stefano,

You can't do with kill -9 for user2. Only root can do it. Use sudo for this purpose.

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1111

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"