Re: Kill user login session

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

 



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.

Jason


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.


-- 
Psyche-list mailing list
Psyche-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux