Re: adduser without ncurses?

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


Date: Sat, 19 Jun 2004 16:43:33 GMT

Erica schreef:

> bomberboy <news@bomberboy.invalid> wrote in message news:<pan.2004.06.19.08.09.43.640780@bomberboy.tk>...

[adduser in batch-mode?]

>> from man 8 adduser:
>>
>> -f file
>> Get the list of accounts to create from file. If file is ``-'',
[...]

> 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!

Oops, apparently it's not a supported option in 4.x. It's available in
5.2 (and maybe earlier). Upgrading your adduser to the one from 5.x
probably is a bad idea. You should look at pw, as suggested by jpd, and
maybe the -w option is of any use for you.

-- 
Bruno
A bird in the hand is worth what it will bring.


Relevant Pages

  • Re: adduser without ncurses?
    ... [adduser in batch-mode?] ... > -f was an invalid option. ... Upgrading your adduser to the one from 5.x ...
    (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)
  • 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.misc)