[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Kill user login session

ps -u "[username]"  will show you all of the processes
owned by the user.

or, if you know what terminal device the user was logged
in at, you can use "ps -t [terminal]"

You will see output that looks similar to this (ps -u): 

  PID TTY          TIME CMD
 1542 ?        00:00:00 gnome-session
 1591 ?        00:00:00 ssh-agent
 1596 ?        00:00:00 gconfd-2
 1598 ?        00:00:00 esd
 1607 ?        00:00:00 bonobo-activati
 1609 ?        00:00:00 gnome-settings-

Find the process ID in the PID column, next to the terminal
number that he was using, and type the command "kill [PID]"

If you are not sure of the terminal that the user was logged
in at, I use a command called 'finger' on my intranet UNIX
machines that shows me idle time as well. If you have finger 
installed, just type in "finger" and look for your user
with the largest idle time. Get the terminal device, and then
do a ps -t on that terminal to get the process ID to kill.


On Wed, 2003-10-15 at 14:47, Leonard Miller wrote:
> Hi,
> I have a user session that has been logged in for a couple of days.
> I know the user has logged out, but I can't figure out how to kill
> the session.
> Any help would be appreciated.
> Thanks
> Leonard
> Automatically inserted lawyer supplied blurb follows
> **********CONFIDENTIALITY NOTICE**********
> The information contained in this e-mail may be confidential and/or 
> privileged and is intended for the sole use of the individual or 
> organization named above.  If you are not the intended recipient or an 
> authorized representative of the intended recipient, any review, copying
> or distribution of this e-mail and its attachments, if any, is prohibited.
> If you have received this e-mail in error, please notify the sender
> immediately by return e-mail and delete this message from your system.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]