Can't define password inside a script in Ubuntu 6.06
I have a script which creates new users. It worked perfectly well under Mandriva 2006, but It breaks under Ubuntu Dapper Drake.
Following are the two options which don't work:
1. User with no password:
passwd -d $username
Either doesn't work in Ubuntu, or at least will somebody show me what to do.
2. Creating a password like this:
echo $userpass |passwd $username --stdin
Can someone please help?
Thanks,
Yitzhak
Last edited by yitzhakbg; 09-05-2006 at 05:47 AM.
|