LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-15-2002, 08:52 PM   #1
d-rez
LQ Newbie
 
Registered: May 2002
Distribution: RH 7.2
Posts: 18

Rep: Reputation: 0
who is on my machine?


I have setup a ftp server on my red hat 7.2 server

I have given some friends accounts with diff permissions.


Is there any way to see who is on my machine at any given time?

Or do you know of any ftp log files?
 
Old 06-15-2002, 09:02 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
who -q

should print all users logged in.

you can also check your logs usually setup in the /var/log directory
but that won't give you who is logged in at that specific time.

Last edited by trickykid; 06-15-2002 at 09:04 PM.
 
Old 06-16-2002, 07:13 AM   #3
Griffon26
Member
 
Registered: Sep 2001
Location: The Netherlands
Distribution: Gentoo, Debian, Mandrake, LFS
Posts: 182

Rep: Reputation: 30
As far as I know, who -q will only show users logged on using a shell.

If you want to see who's using your ftp server, you should read the documentation of the server you are using.
Most servers (can) log sessions to a file in /var/log, but there are also some that can show more detailed information through a special utility. Ncftpd for example has one called ncftpd_spy which, when called as "ncftpd_spy watch" will show you every command any user executes on your ftp.

And if you do have to use the log to see activity, you can also use tail -f /var/log/filename which will periodically (once per sec or so) check if anything was written to the file and then print it to std out.
 
Old 06-21-2002, 10:13 AM   #4
mjakob
Member
 
Registered: Feb 2001
Posts: 69

Rep: Reputation: 15
Or you could just do a 'ps aux' and you should see your friends usernames listed as owners of the ftp processes.

~Mark
 
Old 06-21-2002, 05:52 PM   #5
TruckStuff
Member
 
Registered: Apr 2002
Posts: 498

Rep: Reputation: 30
last will do it also.
 
Old 06-22-2002, 06:20 AM   #6
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
you can also view the file /var/log/message
 
  


Reply



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
scp: copy a file from local machine to remote machine seran Linux - Newbie 8 10-30-2007 12:23 PM
trying to copy files from another machine to the local machine using telnet,..how? shrike_912 Programming 6 03-14-2006 04:45 PM
sharing internet from a windows 98 machine to a Red Hat Linux machine ritwiksolutions Linux - Newbie 7 03-14-2006 10:20 AM
how to open a dilog on local machine when i do ssh to remote machine fahad26 Programming 3 05-03-2005 07:39 PM
Display of Unix Machine on a PCQ Linux Machine gopalkasat Linux - Networking 1 12-14-2004 02:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:45 AM.

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