Re: adduser without ncurses?

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


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!



Relevant Pages

  • Re: adduser und script
    ... Laut der Manpage von adduser: ... > oder das Script veraendern, aber das mag ich wenn moeglich nicht! ... Prev by Date: ... Next by Date: ...
    (de.comp.os.unix.linux.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 ... It creates passwd/group entries, HOME ... the arguments on one line so that I can run it in an awk loop. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: adduser: default groups
    ... for useradd-usermod, ... adduser is a perl script that calls useradd. ... And curiosity is ...
    (Debian-User)
  • 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)