Date: Tue, 12 Oct 2004 08:33:43 +0800 (SGT) From: "Jett Tayer" <jett@angdatingdaan.org> To: freebsd-isp@freebsd.org Subject: Re: Add/Del users Message-ID: <33061.203.190.72.108.1097541223.squirrel@mail.angdatingdaan.org> In-Reply-To: <Pine.BSI.4.05L.10410081223010.12286-100000@pop.citytel.net> References: <Pine.BSI.4.05L.10410081223010.12286-100000@pop.citytel.net>
next in thread | previous in thread | raw e-mail | index | archive | help
you can use the cut and get just all the users and put it in a file. remove root,nobody,etc... and just leave all the users you want to add cut -d ":" /etc/passwd > /path/to/myusers.file then do a for loop something like: for i in `/bin/cat /path/to/myusers.file` do pw useradd $i done hope this helps! /Jett > > Weve been migrating some our servers from BSD/OS to FreeBSD. Main issue > I'm running into is add/del/changing users. The old app we used under > BSD/OS is not ported to FreeBSD (its a custom C cgi) author long gone, > some of the header files needed to compile said cgi's not around, missing > some source too so a port is out. > > Ive done a simple cgi that calls pw that took me a few days to put > together in my spare time. >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?33061.203.190.72.108.1097541223.squirrel>