LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-17-2010, 03:18 PM   #1
krishnalite
LQ Newbie
 
Registered: Jul 2010
Posts: 3

Rep: Reputation: 0
checking list of logged in users, without logging in to that linux pc.


Hello,

It is possible to check who logged in with "who" command. If we are also logged in to that linux pc.

But, is there any possibility to check without our login?(not even by ssh)

Our logging in to find that pc, will be wasting the cpu resources.
And may disturb the user who is working on the x-session.
 
Old 07-17-2010, 03:45 PM   #2
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by krishnalite View Post
Hello,

It is possible to check who logged in with "who" command. If we are also logged in to that linux pc.

But, is there any possibility to check without our login?(not even by ssh)

Our logging in to find that pc, will be wasting the cpu resources.
And may disturb the user who is working on the x-session.
How can you know what is happening in a computer without being able to access it ?
 
Old 07-17-2010, 03:50 PM   #3
diamondsandrain
Member
 
Registered: Oct 2009
Location: Canada
Distribution: Gentoo, Slackware, Arch
Posts: 97

Rep: Reputation: 21
http://gd.tuwien.ac.at/linuxcommand....ges/rwho1.html

It may be what you are looking for. I believe it requires an open port though.

Last edited by diamondsandrain; 07-17-2010 at 03:52 PM.
 
Old 07-17-2010, 03:58 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
You can use finger, BUT the remote box must run in.fingerd that is most unlikely in our days

Regards
 
Old 07-17-2010, 04:21 PM   #5
rdgreenlaw
Member
 
Registered: May 2007
Location: Newport, Maine, USA
Distribution: Debian 8.7
Posts: 73

Rep: Reputation: 18
If you have a web server running on the server in question with PHP enabled you could create a php page that shows who is currently logged on.
Code:
<html>
<head>PHP Script to see who is currently logged onto system</head>
<title>Who is logged onto the server</title>
<body>
<h1>Who is logged onto the server</h1>
<?php
echo `who`;
?>
</body>
 
1 members found this post helpful.
Old 07-18-2010, 03:09 PM   #6
krishnalite
LQ Newbie
 
Registered: Jul 2010
Posts: 3

Original Poster
Rep: Reputation: 0
bathory: My systems run fingerd, could u tell me how to find the logged in users with that??

The php code with webserver is a good idea. But, it doesnt suit my environment. Its not server, i have 200+ individual pcs on my lan.
And my plan is to list all the users currently working on all individual pcs.
 
Old 07-18-2010, 03:29 PM   #7
zirias
Member
 
Registered: Jun 2010
Posts: 361

Rep: Reputation: 59
Code:
finger @host.example.invalid
finger @127.0.0.1
In fact, you should disable fingerd, it's a gaping security hole, revealing valid usernames to anyone.

Some sites use the protocol for completely different purposes nowadays (kernel.org)
 
Old 07-18-2010, 09:22 PM   #8
dwhitney67
Senior Member
 
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,541

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Use ssh:
Code:
ssh remotesystem who | grep -v $USER
The grep will remove your user id from the results.


P.S. You will need to 1) have a login account on the remote system(s), and 2) install your ssh public key on each system so that you do not need to enter a password.

Last edited by dwhitney67; 07-18-2010 at 09:24 PM.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking to see when users logged in otacon 14112 Linux - Security 4 04-02-2007 09:44 AM
know users who are logged in without logging in cad Linux - Networking 6 01-08-2007 11:58 AM
Checking for users that haven't logged on keysorsoze Linux - Newbie 9 04-17-2006 01:45 AM
How do I list all users (even those not logged in) steved Linux - Newbie 2 09-29-2005 04:45 PM
how can i see list of logged on users? doublefailure Linux - General 6 09-10-2002 08:11 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:06 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