Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Apr 1999 22:04:25 -0700
From:      "Ulairi" <ulairi@jps.net>
To:        "notme" <notme@lvdi.net>
Cc:        "Questions" <freebsd-questions@freebsd.org>
Subject:   RE: adduser from shell script or C/Perl program.
Message-ID:  <000001be87c6$993ae240$f3c4edd0@default>
In-Reply-To: <37166A3B.B8DC899E@lvdi.net>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Yeah. Look at pwd.h file for C references (although I could be wrong on
that)
do a "man useradd" for a shell-based way of doing it. Me, I'd do it in shell
(ksh is my shell of choice, although it should be simple enough)
I'd be more then glad to help you offline in private messages in writing a
script that does it - I've had to do something similar at work.

| -----Original Message-----
| From: owner-freebsd-questions@FreeBSD.ORG
| [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of notme
| Sent: Thursday, April 15, 1999 15:38
| To: freebsd-questions@freebsd.org
| Subject: adduser from shell script or C/Perl progarm.
|
|
| Hi,
|     I am wondering if it is possible to add users using a shell script.
| I am currently
| setting up a FreeBSD file server with SAMBA in a local high school,
| which has
| around 1000 computer students (in various classes).  I figured that it
| would be a
| pain in the butt to manually add 1000 users and create 1000 dirs.  In
| addition, is
| there anyway to increase the 8-lower-case letter username limitation?
|
| My current FreeBSD system is 2.2.8 with Samba 1.9.18p10.
|



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?000001be87c6$993ae240$f3c4edd0>