From owner-freebsd-questions Thu Apr 15 22: 7: 2 1999 Delivered-To: freebsd-questions@freebsd.org Received: from smtp6.jps.net (jps.downlink.skycache.com [209.63.224.103]) by hub.freebsd.org (Postfix) with ESMTP id 5D5C414DBD for ; Thu, 15 Apr 1999 22:07:00 -0700 (PDT) (envelope-from ulairi@jps.net) Received: from default (208-237-196-243.irv.jps.net [208.237.196.243]) by smtp6.jps.net (8.9.0/8.8.5) with SMTP id GAA11330; Fri, 16 Apr 1999 06:04:09 -0700 (PDT) From: "Ulairi" To: "notme" Cc: "Questions" Subject: RE: adduser from shell script or C/Perl program. Date: Thu, 15 Apr 1999 22:04:25 -0700 Message-ID: <000001be87c6$993ae240$f3c4edd0@default> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 In-Reply-To: <37166A3B.B8DC899E@lvdi.net> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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