I was recently helping the system admin at my college to set up an ubuntu
server .
I used `*useradd*` in a shell script to create about 100 users and set
permissions .
But I could not figure out how to set passwords for each account as the
password for all the accounts was the same .
So we had to d
Hi,
Please find the url which meet your requirements.
**
*
http://nixcraft.com/shell-scripting/2821-how-create-multiple-user-account-2.html
*
**
Thanks,
V. Karthick
**
**
**
**
**
*
*
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilug
Hi,
On Wed, Feb 1, 2012 at 5:17 PM, Gautam wrote:
>
> Is there any way to set the password via a script in a non interactive way ?
We can use expect and do it. Or if you are inclined to using
python, use python-pexpect. Thanks
--
Thank you
Balachandran Sivakumar
Arise Awake and stop no
We can use expect and do it. Or if you are inclined to using
> python, use python-pexpect. Thanks
Thanks for pointing me in the right direction ,
I found this http://linux.die.net/man/1/expect article which explains a
lot.
If possible please do elaborate on it .
> Is there any way to set the password via a script in a non interactive way ?
You can use "newusers" to create user accounts or set passwords in batch mode.
Regards,
Murthy Raju
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
"newusers" seem like a better option , thanks .
On 1 February 2012 17:32, Murthy Raju wrote:
> > Is there any way to set the password via a script in a non interactive
> way ?
>
> You can use "newusers" to create user accounts or set passwords in batch
> mode.
>
> Regards,
> Murthy Raju
> __
On Wed, Feb 1, 2012 at 5:17 PM, Gautam wrote:
> I was recently helping the system admin at my college to set up an ubuntu
> server .
> I used `*useradd*` in a shell script to create about 100 users and set
> permissions .
> But I could not figure out how to set passwords for each account as the
>
On Wed, Feb 1, 2012 at 5:17 PM, Gautam wrote:
> I was recently helping the system admin at my college to set up an ubuntu
> server .
> I used `*useradd*` in a shell script to create about 100 users and set
> permissions .
> But I could not figure out how to set passwords for each account as the
>