From owner-freebsd-questions Thu Aug 16 6:39: 5 2001 Delivered-To: freebsd-questions@freebsd.org Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by hub.freebsd.org (Postfix) with ESMTP id 13E0637B40B for ; Thu, 16 Aug 2001 06:38:53 -0700 (PDT) (envelope-from fgleiser@cactus.fi.uba.ar) Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by cactus.fi.uba.ar (8.11.3/8.9.3) with ESMTP id f7GDYV787191; Thu, 16 Aug 2001 10:34:39 -0300 (ART) (envelope-from fgleiser@cactus.fi.uba.ar) Date: Thu, 16 Aug 2001 10:34:31 -0300 (ART) From: Fernando Gleiser To: "Kulraj Gurm (bosa.ca Account)" Cc: Subject: Re: Adding users - looking for shortcuts In-Reply-To: <001501c1260d$334e89e0$0ac8a8c0@kimsamy.com> Message-ID: <20010816103130.U87051-100000@cactus.fi.uba.ar> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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, 15 Aug 2001, Kulraj Gurm (bosa.ca Account) wrote: > Hi all, > > This is something I've never tried, it seems like such a basic question, but > I don't know so I have to ask. > > I normally go through the add user process to add a user, but I am going to > be adding 55 users all of the same company. They want generic user name's > and the aliased e-mail. So far no problem. > > What I am wondering about; (since I am lazy and like to do as little work as > possible) if I create one user as normal can I then edit master.passwd and > add more similar lines. You dont need to mess with master.passwd. Use pw(8), which can be used in scripts. Fer > > Add first user normally : > > user0:YMLiXD9XxLuh.:1200:1007::0:0:SDISS > 0:/usr/home/companyx/user0:/usr/bin/passwd > > The add following lines (ie. copy above and edit) to get the 55 users : > user1:YMLiXD9XxLuh.:1201:1007::0:0:COXU > 1:/usr/home/companyx/user0:/usr/bin/passwd > user2:YMLiXD9XxLuh.:1202:1007::0:0:COXU > 2:/usr/home/companyx/user0:/usr/bin/passwd > user3:YMLiXD9XxLuh.:1203:1007::0:0:COXU > 3:/usr/home/companyx/user0:/usr/bin/passwd > > 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. > > All opinions gratefully appreciated. > > Thnx all. > > Kulraj Gurm > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message