Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Aug 2001 21:37:47 -0700
From:      "Kulraj Gurm (bosa.ca Account)" <kulraj@bosa.ca>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   Adding users - looking for shortcuts
Message-ID:  <001501c1260d$334e89e0$0ac8a8c0@kimsamy.com>
References:  <200108141447.KAA29143@cisco.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001501c1260d$334e89e0$0ac8a8c0>