useradd fails - skript to generate users
waldbauernbub at gmx.at
Mon Jun 15 08:19:52 UTC 2009
Markus Schönhaber schrieb:
> You probably wanted to use backticks "`" or $(...) instead of "'" here.
> Otherwise $PASS will be "mkpasswd $PASSWORD" verbatim.
Thank you Markus for your advice.
On friday I solved my problem by assigning 100 users their passwords
Today I tried your solution.
The useradd command still fails. As the stdin command for passwd has
been disabled in Debian I assume that something similar has happened
with the useradd command.
Although I don't have an urgent need any more to automatically add users
from a list. I am still interested in a solution.
It is not necessary to assign the password from the list. A random
password would be sufficient but the script should output the generated
passwords to a textfile.
Once I have a solution I will try to post it to some Ubuntu/Linux Wiki Page.
More information about the ubuntu-users