Adding user problem with Samba-3.0.0

Simo Sorce simo.sorce at xsec.it
Thu Oct 2 08:49:30 GMT 2003


On Wed, 2003-10-01 at 18:10, Gerald (Jerry) Carter wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Raphaël Berghmans wrote:
> 
> | I don't understand why the smbpasswd or pdbedit
> | doesn't call the "add user script" ?
> 
> By design.
> 
> However, try looking at 'net user' (or maybe net add user).
> I don't remember the exact syntax.  In other words, ask smbd
> to create the account for you.

net user add <username>

this command will suppose you have already a root user with uid 0, and
will ask you that user's samba password.

you may easily add that user with th command smbpasswd -a root

otherwise if you have another administrative user that can add accounts
you can simply use:

net user add <username> -U<adminame>


net user can also be used to add users to a windows DC/machine and you
may also select which transport to use (ads/rpc/rap) by specifing it
after the word net (net rpc user add ...)

Use: net help user
for further information on teh command and net help for all the commands
supported by net.

Simo.

-- 
Simo Sorce - simo.sorce at xsec.it
Xsec s.r.l. - http://www.xsec.it
via Durando 10 Ed. G - 20158 - Milano
mobile: +39 329 328 7702
tel. +39 02 2399 7130 - fax: +39 02 700 442 399



More information about the samba-technical mailing list