Re: Adding users from a list or database?
I made a set of perl scripts addapted to the organization I was
sysadmin off, quite simple since they only read a text file and then:
1.- tried to find if user existed (give me quite a headache, since other
sysadmins had used different abbreviations for full names, middle names...)
2.- if it didn't exist use a generated-on-the-fly login (I used a program
made by Juan Cespedes, another Debian developer which might be useful for
3.- add the user with a modified adduser (took the source and modified it to
allow non-interactively give a passwd by STDIN)..might have it around
4.- do all tasks needed in my site: send e-mail, add to printer quotas, set
All my work is, of course, GPL'ed, if anyone finds it might be
userful I can e-mail it to him (or make it available for download)
I have also looked for apps that might be useful for this, and have
some available, like a 'dialog' based app (in spanish) for maintaing a
student's lab of Linux boxes (they use NIS), but have not yet found flexible
enough for the purposes of such a tool....
On Sun, Dec 20, 1998 at 08:28:47PM +0100, Martin Schulze wrote:
> Steve Phillips wrote:
> > What do you do if you have to add many users on a regular basis?
> > I would like to be able to add users from a list, to avoid the
> > interactive nature of adduser. Is there a tool that does something like
> > this? A couple of years ago I modified adduser to read entries from a
> > simple database (one line per entry, fields deliminated by colons) and
> > automagically create user accounts for them. Thats based on a really
> > old version of adduser though.
> If I remember correctly then adduser is based on useradd which is
> not interactive. However I don't think that it's able to set a
> Computers are not intelligent. They only think they are.
> Please always Cc to me when replying to me on the lists.
> To UNSUBSCRIBE, email to firstname.lastname@example.org
> with a subject of "unsubscribe". Trouble? Contact email@example.com