LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 01-16-2013, 08:27 AM   #16
Brandon9000
Member
 
Registered: Apr 2012
Location: Florida
Distribution: Many
Posts: 111

Original Poster
Rep: Reputation: Disabled

True, but my problem has been defined by others. Rightly or wrongly, this is my criterion. I have to identify which, if any, of the users is sitting at the machine logged in physically.
 
Old 01-16-2013, 10:44 AM   #17
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,563

Rep: Reputation: 410Reputation: 410Reputation: 410Reputation: 410Reputation: 410
Security Cameras that you can watch via a web page to see if someone is sitting at the keyboard? There are no better solutions that what has been provided unfortunately.
 
Old 01-16-2013, 11:35 AM   #18
Brandon9000
Member
 
Registered: Apr 2012
Location: Florida
Distribution: Many
Posts: 111

Original Poster
Rep: Reputation: Disabled
I'm not really sure what has been provided. That I should give a "w" command and pick the tty? Or perhaps that I should look at the FROM and the WHAT and perform some test hinted at but not quite stated? What is the algorithm?
 
Old 01-16-2013, 11:43 AM   #19
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 2,408

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
Find what works for you. Run it, look at the output, see which one you prefer and go with it. If it were me I would go with either the TTY or FROM column in w. Either way it will let you know who's sitting at the computer. The user who has a tty# instead of a pts# under the TTY column is the user sitting at the computer. Or the user who has a local display (:0, :0.0, :0.1, etc) instead of a pts# or remote IP/hostname under the FROM column is the user sitting at the computer.

See which one you prefer on your network with your machines and your users. The advantages and drawbacks to each method have been provided.
 
Old 01-16-2013, 11:44 AM   #20
Brandon9000
Member
 
Registered: Apr 2012
Location: Florida
Distribution: Many
Posts: 111

Original Poster
Rep: Reputation: Disabled
Okay, that kind of crystallizes it in my mind. Thanks, all.
 
Old 01-17-2013, 08:27 PM   #21
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5
Posts: 16,086

Rep: Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995
You'll also probably want to use this; effectively a broadcast msg tool http://linux.die.net/man/1/wall
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
checking for user who are logged in, the display first,last name and time logged in LBP74 Programming 1 01-07-2013 04:23 AM
Why am I told I'm logged out after I've logged in? Airidh LQ Suggestions & Feedback 1 02-25-2011 10:35 AM
IPs logged as D.C.B.A and some times A.B.C.D how to find which format is logged tkmsr Linux - Security 15 11-18-2010 08:29 AM
kde much slower to start when logged in as alan than logged in as root arubin Slackware 0 04-26-2004 04:27 PM
mozilla works fine when logged in as a user but crashes when logged in as root jimi Linux - General 6 04-02-2003 08:34 PM


All times are GMT -5. The time now is 07:15 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration