homepage Welcome to WebmasterWorld Guest from 54.227.20.250
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
Ending a user session
scalp8

5+ Year Member



 
Msg#: 3838237 posted 3:28 pm on Jan 30, 2009 (gmt 0)

How do I end a specific user's session that is staying open. I've tried doing it through the database with no luck. I use putty to access the ssh (don't know if that makes a difference). Thank you.

 

mcavic

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3838237 posted 3:54 pm on Jan 30, 2009 (gmt 0)

Do you mean disconnect their ssh session? You need to find what tty they're on (using the w command), then find the process id of their shell like this: ps ax ¦ grep pts/1

Then as root, kill -9 the process id.

eeek

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3838237 posted 4:41 am on Mar 24, 2009 (gmt 0)

kill -9 the process id.

Be nice and try kill -1 before nuking it, please.

graeme_p

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 3838237 posted 11:18 am on Mar 24, 2009 (gmt 0)

killall -u username

or

pkill -u username

pkill lets you specify the signal the same way as kill (-9 for example) whereas killall uses a -s or --signal switch.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved