From owner-freebsd-questions Wed May 23 8:48:11 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtp013.mail.yahoo.com (smtp013.mail.yahoo.com [216.136.173.57]) by hub.freebsd.org (Postfix) with SMTP id 8CBDA37B423 for ; Wed, 23 May 2001 08:48:05 -0700 (PDT) (envelope-from fbsdq@yahoo.com) Received: from h2.impactidealsolutions.com (HELO support10) (216.98.200.91) by smtp.mail.vip.sc5.yahoo.com with SMTP; 23 May 2001 15:48:05 -0000 X-Apparently-From: Message-Id: Date: Wed, 23 May 2001 09:51:51 -0600 X-Priority: 3 From: Peter X-Mailer: Mail Warrior To: lucas@slb.to, "lucas@slb.to" , "freebsd-questions@freebsd.org" MIME-Version: 1.0 Subject: Re: ftpd connections viewable via who Content-Type: Text/Plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8Bit X-Mailer-Version: v3.57 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Another thing to try is using the 'last |grep ftp' command, what this will do is show who was logged into ftp, and if they are still logged in. [at least in Solaris 8, no FBSD box handy, please correct if I'm wrong] Another note, using the device snp [snoop device to spy on other peoples sessions] Is it possible to spy on an ftp session? On 05/23/2001 9:02:00 AM, Lucas Bergman is quoted as saying: . . . .|> In OpenBSD you can supply a switch to view who is connected via ftp . . . .|> using the who command. . . . .| . . . .|Don't use FTP for non-public file transfers. It's not secure. . . . .| . . . .|> Is this possible in FreeBSD? . . . .| . . . .|No, AFAIK. This works, though: . . . .| . . . .| $ ps ax|grep ftpd|grep -v grep|awk -F": " '{print $3}'|egrep -v ^\$ . . . .| . . . .|If you like, put something like that in a script, and call it . . . .|'whoftp'. . . . .| . . . .|Lucas . . . .| . . . .|To Unsubscribe: send mail to majordomo@FreeBSD.org . . . .|with "unsubscribe freebsd-questions" in the body of the message www.nul.cjb.net www.FreeBSD.org _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message