Re: adduser without ncurses?
From: Erica (erica_at_technodyke.com)
Date: 06/19/04
- Next message: Richard T. Kus: "Re: adduser without ncurses?"
- Previous message: bomberboy: "Re: adduser without ncurses?"
- In reply to: phn_at_icke-reklam.ipsec.nu: "Re: adduser without ncurses?"
- Next in thread: phn_at_icke-reklam.ipsec.nu: "Re: adduser without ncurses?"
- Reply: phn_at_icke-reklam.ipsec.nu: "Re: adduser without ncurses?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 19 Jun 2004 10:57:55 -0700
phn@icke-reklam.ipsec.nu wrote in message news:<cb0s9u$1qdj$3@nyheter.ipsec.se>...
> In comp.unix.misc Erica <erica@technodyke.com> wrote:
> > (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.
>
> > --Erica
>
> Have you tried 'adduser' ?
> ADDUSER(8) FreeBSD System Manager's Manual ADDUSER(8)
>
> NAME
> adduser - command for adding new users
>
> SYNOPSIS
> adduser [-check_only] [-class login_class] [-config_create]
> [-dotdir dotdir] [-group login_group] [-h | -help] [-home home]
> [-message message_file] [-noconfig] [-shell shell]
> [-s | -silent | -q | -quiet] [-uid uid_start] [-v | -verbose]
>
> DESCRIPTION
> Adduser is a simple program for adding new users. Adduser checks the
> passwd, group and shell databases. It creates passwd/group entries, HOME
> directory, dotfiles and sends the new user a welcome message.
>
>
>
> adduser is implemented as a perl script, so any changes you feel for
> are easily done.
The problem is that adduser prompts for input, and I need to put all
the arguments on one line so that I can run it in an awk loop. But
thanks!
- Next message: Richard T. Kus: "Re: adduser without ncurses?"
- Previous message: bomberboy: "Re: adduser without ncurses?"
- In reply to: phn_at_icke-reklam.ipsec.nu: "Re: adduser without ncurses?"
- Next in thread: phn_at_icke-reklam.ipsec.nu: "Re: adduser without ncurses?"
- Reply: phn_at_icke-reklam.ipsec.nu: "Re: adduser without ncurses?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|