Re: adduser without ncurses?
From: bomberboy (news_at_bomberboy.invalid)
Date: 06/19/04
- Previous message: phn_at_icke-reklam.ipsec.nu: "Re: cpio"
- In reply to: Erica: "adduser without ncurses?"
- Next in thread: Erica: "Re: adduser without ncurses?"
- Reply: Erica: "Re: adduser without ncurses?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: phn_at_icke-reklam.ipsec.nu: "Re: cpio"
- In reply to: Erica: "adduser without ncurses?"
- Next in thread: Erica: "Re: adduser without ncurses?"
- Reply: Erica: "Re: adduser without ncurses?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|