checking list of logged in users, without logging in to that linux pc.
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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>
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.