LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   know users who are logged in without logging in (https://www.linuxquestions.org/questions/linux-networking-3/know-users-who-are-logged-in-without-logging-in-517428/)

cad 01-08-2007 10:01 AM

know users who are logged in without logging in
 
How do I find out which users are currently logged in to a remote computer without myself logging in.
I dont know how can that be done using finger.
Suppose I try
$finger remote_machine
No such user
$If i try finger @remote_machine
cannot creater socket.

Notwerk 01-08-2007 10:21 AM

Did you try to finger username@remote_machine? (no pun intended)

If the service is running and accessible it will show you the info you need about that user. However, exposing the finger service to remote access over an insecure network is frowned up as it is inherently insecure so unless your on a secured LAN or VPN it is strongly recommended to disable/firewall the finger service.

On the other hand, you can schedule a cron job to priodically email you a list of currently logged on users ($users $w and $who all work).

cad 01-08-2007 11:04 AM

Yes I did that and that to generated the same error cannot create socket

anomie 01-08-2007 11:10 AM

How about ssh user@host w? You're authenticating long enough to run the w command, but you're not really logging into an interactive session.

Simon Bridge 01-08-2007 11:10 AM

$finger @remote_machine
cannot create socket.


Usually means finger has been disabled. Is this on your own network?

Finger listens on port 76 [edit: I mean"79" of course], is this open?
Is the remote machine configured to respond?

cad 01-08-2007 11:16 AM

This is my institute network and I dont know who to check whether the port for finger is open or not.
Isnt port for finger 79

anomie 01-08-2007 11:58 AM

So you can answer your own question in the future:
Code:

[hector@troy ~]$ grep '\<finger\>' /etc/services
finger          79/tcp
finger          79/udp

Check if it's open/listening using nc or nmap, if appropriate for your work situation. This is commonly disabled.


All times are GMT -5. The time now is 03:27 AM.