Operating System - HP-UX
1834650 Members
2376 Online
110069 Solutions
New Discussion

User login but not the owner

 
SOLVED
Go to solution
peterchu
Super Advisor

User login but not the owner

The below is my case ,
the user login into the system twice , then there are two logins in the system now ( eg. pts/10 , pts/15 ), however , when the user try to kill the another process ( pts/15 ) , it pop the message " kill: (8409) - Not owner" , I am very strange that this pid-8409 is the process of this same user , why can't kill the pid of the same user ? thx
5 REPLIES 5
peterchu
Super Advisor

Re: User login but not the owner

$ who -u |grep yfhan
edpuser pts/10 Sep 14 11:14 00:13 8409 (192.168.1.2)
edpuser pts/15 Sep 14 11:28 . 22389 (192.168.1.2)
$ kill -1 8409
kill: (8409) - Not owner
$ kill -9 8409
kill: (8409) - Not owner
peterchu
Super Advisor

Re: User login but not the owner

please ignore my previous reply, it should be :

$ who -u |grep edpuser
edpuser pts/10 Sep 14 11:14 00:13 8409 (192.168.1.2)
edpuser pts/15 Sep 14 11:28 . 22389 (192.168.1.2)
$ kill -1 8409
kill: (8409) - Not owner
$ kill -9 8409
kill: (8409) - Not owner
Muthukumar_5
Honored Contributor
Solution

Re: User login but not the owner

what is the permission for kill binary as,

ll /usr/bin/kill

and /usr/bin/ directory there.

ll -d /usr/bin/

Is /usr/bin/ included in PATH variable. Else try to use the full path location there.

/usr/bin/kill -1

What you are getting to try to kill from another terminal to this one?

Can you able to delete the own pid oh shell as,

kill -1 `who -m | awk '{ print $7 }'`


Default permission for kill is,

555 bin bin /usr/bin/kill
/usr/bin/ is also using the same
Easy to suggest when don't know about the problem!
peterchu
Super Advisor

Re: User login but not the owner

all the below are 755 , could suggest what is my problem ? thx

/usr/bin/kill
/usr/bin/
/bin/kill
Muthukumar_5
Honored Contributor

Re: User login but not the owner

Problem is occuring because of process limit reached it's range there. kill will be executed by creating one process on shell so that it will do kill listed pid. And at that time it is not having the limit to do the operation of killing.

Try to increase the nproc kernel parameter or wait for some process to stop it's execution.

If you are using hp-ux machines, less then 11.23 then try to use as,

kmtune -q nproc

It will give information's there.


A discussion related to this problem over,
http://lists.gnu.org/archive/html/bug-bash/2002-04/msg00098.html

-Muthu
Easy to suggest when don't know about the problem!