Re: Add/Del users
From: Jett Tayer (jett_at_angdatingdaan.org)
Date: 10/12/04
- Previous message: Osyrys Edmister: "Greetings!"
- In reply to: Keith Woodworth: "Add/Del users"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 12 Oct 2004 08:33:43 +0800 (SGT) To: freebsd-isp@freebsd.org
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.
>
_______________________________________________
freebsd-isp@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-isp
To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"
- Previous message: Osyrys Edmister: "Greetings!"
- In reply to: Keith Woodworth: "Add/Del users"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|