From owner-freebsd-questions Wed May 23 9:15:36 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dsl-64-193-218-89.telocity.com (dsl-64-193-218-89.telocity.com [64.193.218.89]) by hub.freebsd.org (Postfix) with SMTP id 37C1537B424 for ; Wed, 23 May 2001 09:15:34 -0700 (PDT) (envelope-from lucas@slb.to) Received: (qmail 14783 invoked by uid 1000); 23 May 2001 16:15:51 -0000 Date: Wed, 23 May 2001 11:15:51 -0500 From: Lucas Bergman To: Peter Cc: freebsd-questions@freebsd.org, Jason Hunt Subject: Re: ftpd connections viewable via who Message-ID: <20010523111551.A1870@billygoat.slb.to> Reply-To: lucas@slb.to References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from fbsdq@yahoo.com on Wed, May 23, 2001 at 09:51:51AM -0600 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 > > > In OpenBSD you can supply a switch to view who is connected via > > > ftp using the who command... Is this possible in FreeBSD? > > > > No, AFAIK. This works, though: > > > > $ ps ax|grep ftpd|grep -v grep|awk -F": " '{print $3}'|egrep -v ^\$ > > 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... You're right. This is much less stupid: $ last | egrep 'ftp.*still logged in$' Thanks, Lucas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message