Date: Thu, 16 Aug 2001 10:34:31 -0300 (ART) From: Fernando Gleiser <fgleiser@cactus.fi.uba.ar> To: "Kulraj Gurm (bosa.ca Account)" <kulraj@bosa.ca> Cc: <freebsd-questions@FreeBSD.ORG> Subject: Re: Adding users - looking for shortcuts Message-ID: <20010816103130.U87051-100000@cactus.fi.uba.ar> In-Reply-To: <001501c1260d$334e89e0$0ac8a8c0@kimsamy.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010816103130.U87051-100000>