On Wed, Feb 1, 2012 at 5:17 PM, Gautam <gautham5...@gmail.com> 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
> password for all the accounts was the same .
> So we had to do it manually using `passwd`,
>
> Is there any way to set the password via a script in a non interactive way ?

I don't use expect.

In OpenBSD there is a way to create a password digest replete with salt
 using adduser(1).

You are in the right direction.

-Girish
-- 
G3 Tech
Networking appliance company
web: http://g3tech.in  mail: gir...@g3tech.in
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to