Koozali.org: home of the SME Server

useradd again

jane

useradd again
« 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?

Cyrus Bharda

Re: useradd again
« Reply #1 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

Guido

Re: useradd again
« Reply #2 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?

Nathan Fowler

Re: useradd again
« Reply #3 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...

Filippo Carletti

Re: useradd again
« Reply #4 on: January 14, 2003, 09:36:31 PM »