Kick User in Unix

Status
Not open for further replies.

pcschris

Solid State Member
Messages
20
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
 
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
 
Status
Not open for further replies.
Back
Top Bottom