Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: jane on January 09, 2003, 06:33:35 AM

Title: useradd again
Post by: jane on January 09, 2003, 06:33:35 AM
from my previous message I've asking in how to create user without using server-manager. And I found the way got the Howto's info from Cyrus Bharda at http://myezserver.com/downloads/mitel/howto/addusers-howto.html.

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 (if i'm not mistaken)
Any idea guyz?
Title: Re: useradd again
Post by: Cyrus Bharda on January 09, 2003, 07:17:54 AM
Sorry cannt help you there as I didnt write that howto :-) and I have not tested it either, hopefully one of the authors, David O'Dwyer & Scott Smith, will see this post :-)

Sorry,

Cyrus Bharda
Title: Re: useradd again
Post by: Guido on January 09, 2003, 05:33:40 PM
I have found another add user script at http://www.neddix.de/sme/adduser/adduser.php. Haven't tested it, but sounds promising. It looks like, that it can deal with blanks. Have a look at the example.

guido

jane wrote:
>
> from my previous message I've asking in how to create user
> without using server-manager. And I found the way got the
> Howto's info from Cyrus Bharda at
> http://myezserver.com/downloads/mitel/howto/addusers-howto.html.
>
> 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 (if i'm not mistaken)
> Any idea guyz?
Title: Re: useradd again
Post by: Nathan Fowler on January 11, 2003, 05:24:35 AM
You could try enclosing your blanks with the chr(34) character.

IE:
jane:"jr. mary":jane

Just a thought...
Title: Re: useradd again
Post by: Filippo Carletti on January 14, 2003, 09:36:31 PM

This works:
http://www.mobilia.it/filippo/download/mitel/adduser.tgz