LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-19-2004, 12:52 PM   #1
ceph
LQ Newbie
 
Registered: Jun 2003
Location: New York
Distribution: gentoo 2006; mac osx server
Posts: 16

Rep: Reputation: 0
logging off remotely


I was wondering if there was anyway to log off another user on my machine remotely. I'm usually connected to my machine from work via ssh, and see that someone has logged in and left. I know you can set a timeout to do it, but I don't want to interrupt a download they might be doing, or a project they may be working on.

thanks
ryan
 
Old 07-20-2004, 12:31 AM   #2
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Every user when logged gets a pseudo terminal. If you enter
Code:
who
mauricio pts/0    Jul 19 18:37
root     pts/1    Jul 19 18:39
root     pts/2    Jul 19 21:00
osvaldo  pts/5    Jul 20 02:19 (Modelo)
you will see who is logged on your machine. If you enter
Code:
ps t pts/5
  PID TTY      STAT   TIME COMMAND
15776 pts/5    S      0:00 -bash
you will see the programs executing in this pseudo terminal. All you have to do is
Code:
kill -HUP <pid>
of the sessions you want to log off. See the who gives the remote machine from where came the connection.

I hope this helps
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
start X remotely blas Linux - General 1 09-21-2005 05:14 AM
Logging into Linux machien remotely with graphical interface hopbalt Linux - Newbie 1 08-12-2004 01:11 PM
X remotely linuxnube Linux - General 3 01-26-2004 03:17 AM
How can I start X remotely? kleptophobiac Linux - Software 1 08-06-2003 09:16 PM
using red-carpet without logging out and logging as root. packman Linux - Software 1 12-09-2002 02:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration