From owner-freebsd-questions Wed Aug 15 22:57:33 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dell.dannyland.org (dell.dannyland.org [64.81.36.13]) by hub.freebsd.org (Postfix) with ESMTP id 65C1137B40F for ; Wed, 15 Aug 2001 22:57:27 -0700 (PDT) (envelope-from dannyman@toldme.com) Received: by dell.dannyland.org (Postfix, from userid 1001) id AD6415BF0; Wed, 15 Aug 2001 23:00:05 -0700 (PDT) Date: Wed, 15 Aug 2001 23:00:05 -0700 From: dannyman To: "Kulraj Gurm (bosa.ca Account)" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Adding users - looking for shortcuts Message-ID: <20010815230005.F91674@toldme.com> References: <200108141447.KAA29143@cisco.com> <001501c1260d$334e89e0$0ac8a8c0@kimsamy.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <001501c1260d$334e89e0$0ac8a8c0@kimsamy.com>; from kulraj@bosa.ca on Wed, Aug 15, 2001 at 09:37:47PM -0700 X-Loop: djhoward@uiuc.edu Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Aug 15, 2001 at 09:37:47PM -0700, Kulraj Gurm (bosa.ca Account) wrote: [...] > they are all going to have the same initial password. > Then all I have to do is map username to aliases in virtual table and we > have a functional e-mail accounts! > > Is this going to work or am I asking for headaches? There must be an easier > way than going through the adduser process 55 times. Do this in vipw, or edit /etc/master.passwd directly, and then invoke "pwd_mkdb /etc/master.passwd" If you want to be fancy, script something up with pw(8). Something like: for n [ 1 2 3 4 5 ]; do echo "foofoo" | pw useradd user${n} -h 0 done This way, pw does all the worrying about creating unique UIDs, and making home directories, and the like. -danny -- http://dannyman.toldme.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message