Date: Thu, 2 Sep 1999 09:07:50 -0500 (CDT) From: "Paul T. Root" <proot@iaces.com> To: Jason@aiis.net (Jason Taylor) Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Users Message-ID: <199909021407.JAA07896@iaces.com> In-Reply-To: <01ff01bef54b$d431ac10$e8d6a4cd@aiis.net> from Jason Taylor at "Sep 2, 99 10:02:44 am"
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199909021407.JAA07896>
