The Samba-Bugzilla – Bug 7360
net newuser code should match help text
Last modified: 2013-02-18 13:31:04 UTC
/opt/samba/bin/net newuser -h
usage: newuser [options] <username> [<password>]
-h, --help show this help message and exit
-H H LDB URL for database or target server
--unixname=UNIXNAME Unix Username
/opt/samba/bin/net -Uadministrator newuser --unixname=paul paul 27ff3199
Invalid option --unixname=paul: unknown option
net <command> [options]
Type 'net help' for all available commands
most of the net subcommands are very much inconsistent with their help texts...
This is caused by the conversion from these codeparts to python. Jelmer should be able to explain this.
Jelmer told me, that the preferred way to add user accounts using the "net" tool is now "net user add". The old command "net newuser" will be dropped soon.
thanks, I'll try that one...
net user help - works
net user add help - tries to add a user help (no help for the add sub-command?)
net user add test - works
net user add test passwd - fails. how to set the initial password?
I think you should use "net setpassword <user>".
Well, I will shortly push some patches which improve the actual situation:
- "net newuser" will remain since it allows the creation of new user objects on the local SamDB with no s4 server running
- "net user add" allows the creation of new user objects over the RPCs and therefore needs always to have a daemon. I've enhanced the command to support the password as optional parameter to make it consistent with the first.
- I've fixed up the description comments of "net" subtools which explain now if a certain task is runnable with or without daemon.
Marking it as "FIXED" unless we hear us again.