Re: adduser without ncurses?

From: Erica (erica_at_technodyke.com)
Date: 06/19/04


Date: 19 Jun 2004 09:24:51 -0700

bomberboy <news@bomberboy.invalid> wrote in message news:<pan.2004.06.19.08.09.43.640780@bomberboy.tk>...
> 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.

For some reason, on my computer adduser does not allow this option. It
isn't listed in the man page, and when I tried it anyway, it said that
-f was an invalid option. Is there a way of upgrading this? Thanks!



Relevant Pages

  • 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.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)
  • Re: adduser without ncurses?
    ... > I wrote a script to add a whole bunch of users to a FreeBSD box using ... 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 ... 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 ... -f was an invalid option. ...
    (comp.unix.bsd.freebsd.misc)