[PLUG] Re: Listing Linux Users

Carla Schroder pluglist at bratgrrl.com
Mon Apr 7 11:59:02 UTC 2003


On Monday 07 April 2003 10:30 am, Robby Russell wrote:
> > Or what about selection by UID_MIN?  On my system, the human accounts are
> >
> > >=
> >
> > 1000. I haven't been able to make it work, though... yet...
> >

>
> I have a simple script in my cron to get add all the users on my system to
> a file that postfix uses for an alias. In my case, the UIDs are 500+
>
>
> #/bin/sh
> /usr/bin/awk -F: '$3 > 500 { print $1 }' /etc/passwd > /etc/mail/allusers

I think I must learn this awk, that's a lot simpler than what I've been 
messing with.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~
Carla Schroder
www.tuxcomputing.com
this message brought to you
by Libranet 2.7 and Kmail
~~~~~~~~~~~~~~~~~~~~~~~~~




More information about the PLUG mailing list