Re: Add/Del users

From: Jett Tayer (jett_at_angdatingdaan.org)
Date: 10/12/04

  • Next message: Umar Draz: "Question about Syslogd (urgent)"
    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"


  • Next message: Umar Draz: "Question about Syslogd (urgent)"

    Relevant Pages

    • Add/Del users
      ... Weve been migrating some our servers from BSD/OS to FreeBSD. ... I'm running into is add/del/changing users. ... BSD/OS is not ported to FreeBSD (its a custom C cgi) author long gone, ...
      (freebsd-isp)
    • Re: BSD/OS 5.1 is the last Wind river BSD
      ... td> BSD/OS vs FreeBSD ... Apache is not installed with FBSD. ... When I install it I put it all in /home/www. ... td> Not as easy in FreeBSD. ...
      (comp.unix.bsd.freebsd.misc)
    • Re: BSD/OS 5.1 is the last Wind river BSD
      ... These are configurable options to a third-party package. ... % Not as easy in FreeBSD. ... configuration is equally opaque on all platforms. ... update an mc file on BSD/OS than it is on FreeBSD? ...
      (comp.unix.bsd.freebsd.misc)
    • Re: BSDI 4.3 Kernel API -> FreeBSD X.X Kernel API?
      ... my FreeBSD driver source to make it work under BSD/OS 4.3? ... >>1) Is the FreeBSD kernel api is the same or similar to the BSDI kernel ... > You need 4.3 BSD/OS Source to compile from FreeBSD C Source. ...
      (comp.unix.bsd.freebsd.misc)