LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Who Is Logged In (https://www.linuxquestions.org/questions/linux-general-1/who-is-logged-in-4175445751/)

Brandon9000 01-16-2013 08:27 AM

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.

Kustom42 01-16-2013 10:44 AM

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.

Brandon9000 01-16-2013 11:35 AM

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?

suicidaleggroll 01-16-2013 11:43 AM

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.

Brandon9000 01-16-2013 11:44 AM

Okay, that kind of crystallizes it in my mind. Thanks, all.

chrism01 01-17-2013 08:27 PM

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


All times are GMT -5. The time now is 12:32 AM.