From owner-freebsd-questions Thu Sep 2 7:33: 9 1999 Delivered-To: freebsd-questions@freebsd.org Received: from iaces.com (horton.iaces.com [204.147.87.98]) by hub.freebsd.org (Postfix) with ESMTP id BD3A514DFE for ; Thu, 2 Sep 1999 07:33:05 -0700 (PDT) (envelope-from proot@iaces.com) Received: (from proot@localhost) by iaces.com (8.9.3/8.9.3) id JAA07896; Thu, 2 Sep 1999 09:07:51 -0500 (CDT) From: "Paul T. Root" Message-Id: <199909021407.JAA07896@iaces.com> Subject: Re: Users In-Reply-To: <01ff01bef54b$d431ac10$e8d6a4cd@aiis.net> from Jason Taylor at "Sep 2, 99 10:02:44 am" To: Jason@aiis.net (Jason Taylor) Date: Thu, 2 Sep 1999 09:07:50 -0500 (CDT) Cc: freebsd-questions@FreeBSD.ORG X-Organization: USWEST !nterprise Networking - ACES X-Phone: (612) 664-3385 X-Fax: (612) 664-4779 X-Page: (800) SKY-PAGE PIN: 537-7270 X-Address: 600 Stinson Blvd, Fl 1S X-Address: Minneapolis, MN 55413 X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In a previous message, Jason Taylor said: > Is there a command to show a list of users and the groups that they are in? Thanks in advance > > Jason I'm sure there are many other ways to do it, but: #!/bin/sh for i in `awk -F: '{print $1}' /etc/passwd` do echo -n "$i: " groups $i done -- "In case you've never noticed, I'd like to call your attention to the fact that the word "stressed" is "desserts" spelled backwards. That says to me, with my mystical turn of mind, is that the cure for being stressed is to eat desserts." -Rob Brezsny To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message