Add/Del users
Jett Tayer
jett at angdatingdaan.org
Mon Oct 11 17:31:32 PDT 2004
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.
>
More information about the freebsd-isp
mailing list