Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
force user to logout [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
nielchiano
Veteran
Veteran


Joined: 11 Nov 2003
Posts: 1287
Location: 50N 3E

PostPosted: Fri Jan 07, 2005 6:22 pm    Post subject: force user to logout [solved] Reply with quote

Hi,

Easy question: I have root privileges via an SSH session. one of the users left his terminal session open on the console. How can I force that session to log out?

I'd like to have it LOG OUT instead of getting killed, so I can check out the .bash_history to see if someone tried to do nasty stuff...

is this possible, if so, how?
Back to top
View user's profile Send private message
nielchiano
Veteran
Veteran


Joined: 11 Nov 2003
Posts: 1287
Location: 50N 3E

PostPosted: Fri Jan 07, 2005 6:29 pm    Post subject: Reply with quote

ok, I found it out myself. I'll post the answer here for others:
http://kb.indiana.edu/data/adqw.html?cust=632549.54727.131

ps aux | grep "username"

identify the PID of the bash running; then send it the HUP signal
Code:
kill -HUP PID
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum