[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] Adduser Script



I have been playing around on our spare RAQ2 server with the adduser
command.

It is really quit simple once I figured it out to add a user.

adduser username -g 100 -c "User Fullname" -d
/home/sites/home/users/username

This add's them to  the home group -g 100 and creates home directory and
default shell.

Then I run passwd username
and enter password twice and they are all set.

Of course this does not add them to web interface but I am finding in this
case that I wont
be able to use the interface for what I need anyways as I am about to add
700 accounts
and cobalt pretty much has said not to do it and I am not sure how I can
anyways since
it takes as long as 2 - 5 minutes via the web interface to add a single
account now and I
have only added about 250 users.


This prompted me to start looking at how else to achive this. Being a NT guy
it was not
easy. I have a spare unit I use for testing that exactly resembles the
production unit so
I started playing with this device.

What I need to do now is perhaps get some help in creating a shell script or
the liking
that will take a list of 700 username and passwords and automatically
execute the above
adduser and passwd commands above for each account.

Can anyone point me in the right direction or help me get something like
this working?

Thanks
Jim