Hi, You can do it in several ways... The first one is very simple, but using awk will give you some more power. It all rather depends on what you need. To get only the user names (meditate [man] over this commands to do yet more): * cut -d : -f 1 < /etc/passwd * awk 'BEGIN {FS=":"} {print $1}' < /etc/passwd or, if you want only the 'normal' users: awk 'BEGIN {FS=":"} $3>=500 {print $1}' < /etc/passwd etc... etc... etc... Hope it helps, Rui On Wed, 2003-01-15 at 12:26, Pablo Allietti wrote: > cat /etc/passwd > > > On Wed, Jan 15, 2003 at 10:15:21AM -0700, Jim Christiansen wrote: > > Delivered-To: pablo@lacnic.net > > Delivered-To: psyche-list@listman.redhat.com > > X-Originating-IP: [24.70.120.26] > > From: "Jim Christiansen" <christiansen_j@hotmail.com> > > To: psyche-list@redhat.com > > Subject: list users > > X-OriginalArrivalTime: 15 Jan 2003 17:15:21.0976 (UTC) FILETIME=[AF890780:01C2BCB9] > > X-Loop: psyche-list@redhat.com > > Errors-To: psyche-list-admin@redhat.com > > X-BeenThere: psyche-list@redhat.com > > X-Mailman-Version: 2.0.1 > > Precedence: bulk > > Reply-To: psyche-list@redhat.com > > List-Help: <mailto:psyche-list-request@redhat.com?subject=help> > > List-Post: <mailto:psyche-list@redhat.com> > > List-Subscribe: <https://listman.redhat.com/mailman/listinfo/psyche-list>, > > <mailto:psyche-list-request@redhat.com?subject=subscribe> > > List-Id: Discussion of Red Hat Linux 8.0 (Psyche) <psyche-list.redhat.com> > > List-Unsubscribe: <https://listman.redhat.com/mailman/listinfo/psyche-list>, > > <mailto:psyche-list-request@redhat.com?subject=unsubscribe> > > List-Archive: <https://listman.redhat.com/pipermail/psyche-list/> > > Date: Wed, 15 Jan 2003 10:15:21 -0700 > > X-MailScanner: Found to be clean > > X-Spam-Status: No, hits=0.0 required=6.0 > > tests=none > > version=2.31 > > X-Spam-Level: > > > > Hello, > > > > I've been using RHat since 6.0, but only for certain tasks such as nating, > > and proxying. I have only used it for about 1.5 years as regular desktop > > replacement to Windows. Before I get flamed- let me say I've tried to use > > the faqs and several good books, but none explain how to, without using a > > gui: > > > > get a list of all of the users added to a system... > > > > is it recorded in /etc/group? I dunno for sure. Also, is there a way for > > a root user to hide the creation of another user with root privileges? > > > > Thanks, > > > > Jim > > > > _________________________________________________________________ > > Protect your PC - get McAfee.com VirusScan Online > > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > > > > > > > -- > > Psyche-list mailing list > > Psyche-list@redhat.com > > https://listman.redhat.com/mailman/listinfo/psyche-list > ---end quoted text--- > > -- > > Pablo Allietti > > LACNIC > > Registro de Direcciones de Internet para America Latina y el Caribe > Registro de Enderecamento de Internet para America Latina e Caribe > Latin American and Caribbean Internet Addresses Registry > > Potosi 1517 Montevideo - Uruguay > Tel. +598 2 6015846 // 6062822 Fax: 6015599 -- + No matter how much you do, you never do enough -- unknown + Whatever you do will be insignificant, | but it is very important that you do it -- Gandhi + So let's do it...?
Attachment:
signature.asc
Description: This is a digitally signed message part