From owner-freebsd-bugs Tue May 8 9: 0: 7 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0705D37B422 for ; Tue, 8 May 2001 09:00:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f48G04E59914; Tue, 8 May 2001 09:00:04 -0700 (PDT) (envelope-from gnats) Date: Tue, 8 May 2001 09:00:04 -0700 (PDT) Message-Id: <200105081600.f48G04E59914@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Peter Pentchev Subject: Re: bin/27205: Listing all users in the passwd file Reply-To: Peter Pentchev Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/27205; it has been noted by GNATS. From: Peter Pentchev To: jamie@psi-domain.co.uk Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/27205: Listing all users in the passwd file Date: Tue, 8 May 2001 20:03:21 +0300 You might want to make a port out of this.. G'luck, Peter -- This sentence would be seven words long if it were six words shorter. On Tue, May 08, 2001 at 04:32:02PM +0100, jamie@psi-domain.co.uk wrote: > > >Number: 27205 > >Category: bin > >Synopsis: Listing all users in the passwd file > >Originator: Jamie Heckford > >Release: FreeBSD 4.2-STABLE i386 > >Organization: > Psi-Domain Limited > >Environment: > > FreeBSD storm.psi-domain.co.uk 4.2-STABLE FreeBSD 4.2-STABLE #2: Fri Mar 2 10:32:25 GMT 2001 > > >Description: > > I was recently trying to discover a way of getting a list of all users on > one of my systems, and could not find an easy way to do it. > > I discovered the following awk script that prints out all users on the system > (from /etc/passwd). (Courtesy of sendmail.org) > > awk -F: '$3 > 100 { print $1 }' /etc/passwd > > Which will print out a list of all users in the passwd file wuth a UID greater > than 100. > > Could this be turned into a command such as "userlist", and/or would it be > deemed usefull? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message