Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 02-07-2007, 09:47 AM   #1 (permalink)
 
Newb Techie

Join Date: Aug 2006

Posts: 20

pcschris

Question Kick User in Unix

Hello,

Does anyone know a command to kick a user from Unix? We use a program that connects to the Unix server, and sometimes when it crashes the server still thinks someone is logged in even though they are not. If they were in the middle of updating a record, it will be locked until it times out (around two hours.) Sometimes the user account will also be locked for that time. Does a command to kick a user exist?

Thanks,
Chris
pcschris is offline  
Old 02-07-2007, 01:51 PM   #2 (permalink)
 
Master Techie

Join Date: Apr 2004

Posts: 2,534

horndude is on a distinguished road

Default

you have to do a couple of things, first determine what processes they have started and use the kill command to stop them, and if this involves an X-session you would need to kill the PID and x-session lock for them, this needs to be done as root

other thing you can do is use su to log in under their user name and then log them out, also needs to be done as root

the who command will show who's logged in, ps x will show current processes running
horndude is offline  
Old 02-07-2007, 05:37 PM   #3 (permalink)
macdude425's Avatar
 
Member (again)

Join Date: Jan 2005

Location: Raul's Wild Kingdom...How 'bout that, huh?

Posts: 4,200

macdude425 is on a distinguished road

Send a message via AIM to macdude425 Send a message via Yahoo to macdude425
Default

There's also a neat little app called slay that can kick users. Check it out.
__________________



Debian Support Forums!
macdude425 is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On