Koozali.org: home of the SME Server

useradd ?

jane

useradd ?
« on: January 05, 2003, 08:51:04 AM »
Hi everybody,

My users are increases and creating user accounts using server-manager now are quite little bit slow. I try to find out the proper way in how to create user without using server-manager. (eg terminal). Is there have the way?

Gabriel Requito

Re: useradd ?
« Reply #1 on: January 07, 2003, 05:58:49 AM »
Hi Jane,

I don“t think so. It's possible, but from mine understanding, the process of creating a users is far more complex than simply creating him in the command line. There are several tasks preformed by the system, such as creating the folders for the new user, setting the permissions, adding to groups, mail box configuration, remote access, etc.. So I sincerly advise you to keep working with server-manager. Is much more secure.

Regards,

Gabriel Requito

Cyrus Bharda

Re: useradd ?
« Reply #2 on: January 07, 2003, 08:54:06 AM »
Yes there is a way try searching the forums for batch user or something like that, I know of 2 scripts that all you need to do is create a usernamelist.txt and copy it into the same dir as the script and run the script and hey presto, I just dont know where you can find it but searching the forums would probably get you going in the right direction.

Cyrus Bharda

Cyrus Bharda

Re: useradd ?
« Reply #3 on: January 07, 2003, 09:16:30 AM »
Ok I lied, found it :-) heres the Howto:

http://myezserver.com/downloads/mitel/howto/addusers-howto.html

Enjoy!

Cyrus Bharda

jane

Re: useradd ?
« Reply #4 on: January 08, 2003, 09:02:33 AM »
thanks so much guyz. I'll being trying this.

jane

Re: useradd ?
« Reply #5 on: January 09, 2003, 06:25:36 AM »
after testing the script, i found that I'm only be able to put only one word for each awk.
eg: USERNAME1:FIRSTNAME1:LASTNAME1 i put it
      jane:mary:jane all workin fine. But if I want to to make it like this
      jane:jr. mary:jane - error.
I has check the error and suspecting it came from /sbin/e-smith/db
Any idea guyz?