Re: adduser without ncurses?
phn_at_icke-reklam.ipsec.nu
Date: 06/19/04
- Next message: cljlk: "Re: cpio"
- Previous message: bomberboy: "Re: adduser without ncurses?"
- 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:08:30 +0000 (UTC)
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.
--
Peter Håkanson
IPSec Sverige ( At Gothenburg Riverside )
Sorry about my e-mail address, but i'm trying to keep spam out,
remove "icke-reklam" if you feel for mailing me. Thanx.
- Next message: cljlk: "Re: cpio"
- Previous message: bomberboy: "Re: adduser without ncurses?"
- 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 ]