Re: adduser without ncurses?

From: bomberboy (news_at_bomberboy.invalid)
Date: 06/19/04

  • Next message: phn_at_icke-reklam.ipsec.nu: "Re: adduser without ncurses?"
    Date: Sat, 19 Jun 2004 08:09:49 GMT
    
    

    Erica schreef:

    > (I may have accidently posted this twice, if so, I apologize)
    >
    > Hi,
    >
    > I wrote a script to add a whole bunch of users to a FreeBSD box using input from
    > a file. However, I need something that works like adduser or useradd
    > without ncurses, that is, without prompting for input. Something that
    > allows me to just place all the arguments on a single line so that I can
    > run it in an awk loop. If anyone knows of such a thing, I would be ever
    > grateful for your assistance.

    from man 8 adduser:

         -f file
                 Get the list of accounts to create from file. If file is ``-'',
                 then get the list from standard input. If this option is speci-
                 fied, adduser will operate in batch mode and will not seek any
                 user input. If an error is encountered while processing an
                 account, it will write a message to standard error and move to
                 the next account. The format of the input file is described
                 below.

    -- 
    Bruno
    You're never too old to become younger.
    		-- Mae West
    

  • Next message: phn_at_icke-reklam.ipsec.nu: "Re: adduser without ncurses?"

    Relevant Pages

    • adduser without ncurses?
      ... (I may have accidently posted this twice, if so, I apologize) ... I wrote a script to add a whole bunch of users to a FreeBSD box using input from ...
      (comp.unix.misc)
    • adduser without ncurses?
      ... (I may have accidently posted this twice, if so, I apologize) ... I wrote a script to add a whole bunch of users to a FreeBSD box using input from ...
      (comp.unix.bsd.freebsd.misc)
    • Re: adduser without ncurses?
      ... >I wrote a script to add a whole bunch of users to a FreeBSD box using input from ... I need something that works like adduser or useradd ... >without ncurses, that is, without prompting for input. ...
      (comp.unix.misc)
    • Re: adduser without ncurses?
      ... >I wrote a script to add a whole bunch of users to a FreeBSD box using input from ... I need something that works like adduser or useradd ... >without ncurses, that is, without prompting for input. ...
      (comp.unix.bsd.freebsd.misc)
    • Re: adduser without ncurses?
      ... > I wrote a script to add a whole bunch of users to a FreeBSD box using input from ... I need something that works like adduser or useradd ...
      (comp.unix.bsd.freebsd.misc)