useradd fails - skript to generate users
Markus Schönhaber
ubuntu-users at list-post.mks-mail.de
Mon Jun 15 09:01:21 UTC 2009
Franz Waldmüller:
> Today I tried your solution.
> The useradd command still fails.
And what is the error message?
Tip: to see how the command to be executed really looks like, precede it
with echo, e. g.
echo useradd --password $PASS -m -d $HOME_BASE/$USER $USER -e 2009-12-31
or, probably even better, use bash's
set -x
in your script to make it print the commands and their arguments as they
are executed.
> As the stdin command for passwd has
> been disabled in Debian I assume that something similar has happened
> with the useradd command.
What has stdin to do with the problem? You used useradd's --password
command line option to set the password - something which, BTW, works
fine for me.
--
Regards
mks
More information about the ubuntu-users
mailing list