[Ilugc] Setting password for multiple users via shell script

2012-02-01 Thread Gautam
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

[Ilugc] Setting password for multiple users via shell script

2012-02-02 Thread Karthikeyan Venkatraman
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

Re: [Ilugc] Setting password for multiple users via shell script

2012-02-01 Thread Balachandran Sivakumar
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

Re: [Ilugc] Setting password for multiple users via shell script

2012-02-01 Thread Gautam
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 .

Re: [Ilugc] Setting password for multiple users via shell script

2012-02-01 Thread Murthy Raju
> 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

Re: [Ilugc] Setting password for multiple users via shell script

2012-02-01 Thread Gautam
"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 > __

Re: [Ilugc] Setting password for multiple users via shell script

2012-02-01 Thread Girish Venkatachalam
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 >

Re: [Ilugc] Setting password for multiple users via shell script

2012-02-02 Thread Noorul Islam Kamal Malmiyoda
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 >