Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

kil user process

Status
Not open for further replies.

TheDash

MIS
Mar 25, 2004
171
US
can someone tell how to boot/logout a user from a system (as root?)

who -u gives
pts/7 Jul 13 14:10 old 526 100.1000.10000.1000

But when I "kill 526" it says process doesn't exist
 
Get the PID using ps -ef | grep <user> and take the second column. Then kill it gracefully if you can - only resort to kill -9 as a last resort.
 
man kill
you are missing an option (signal to send)
 
Thanks. I tried all of these before ...

kill -9 pid
kill pid
kill -KILL pid

It gave the same message "process doesn't exist" each time.
What could be the reason? who -u still shows the user.
 
Does ps -ef | grep 526 show anything - perhaps that it's a defunct process? If that's the case they are notoriously difficult to kill short of a reboot. They don't however, take much in respect of system resources unless there are lots (and lots) of them.
 
Hi,

I tried it ps -ef | grep 526 doesn't show anything. What could be happening? Is it possible at this stage?
 
accept it: proc 526 is not running!
/usr/proc/bin/ptree will confirm it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top