1833846 Members
2131 Online
110063 Solutions
New Discussion

Disconnecting a user

 
Frederic Jacquet
Occasional Contributor

Disconnecting a user

Under Linux or AIX, running kill -1 -1 as a user terminates all his session smoothly.
Under HPUX 11i I got ... kill: -1: The specified process does not exist.

I can not run a ps -fu user|grep -v grep |xargs kill -9 because I can face database issues if he is connected.

Killall is only used to stop the box.

Is there an unknown command ?
3 REPLIES 3
RAC_1
Honored Contributor

Re: Disconnecting a user

There is no command as killall in hp-ux.
you can kill your current session as follows.

kill -15 $$
There is no substitute to HARDWORK
Alexey Roytman
Frequent Advisor

Re: Disconnecting a user

For me, on HP-UX 11.11 "kill -1 -1" works as it should.
Also, in "man kill" written:
=-1 All processes, except special system processes, if the user
has appropriate privileges. Otherwise, all processes,
except special system processes, whose real or effective
user ID is the same as the user ID of the sending process.

Please, check with the following:
which kill
/usr/bin/kill
what /usr/bin/kill
$Revision: B.11.11_LR
Fri Oct 27 00:33:38 PDT 2000 $
Frederic Jacquet
Occasional Contributor

Re: Disconnecting a user

Got it

kill is a built in shell command
/usr/bin/kill works


feel a bit stupid :(