[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: useradd and passwd

I have got some nice PHP Scripts that would serve your purpose well.. if you
like, let me know.
----- Original Message -----
From: "Vivek Chawla" <vivek.chawla@xxxxxxxxxx>
To: <linux-delhi@xxxxxxxxxxxxxxxxxxxxx>
Sent: Friday, May 11, 2001 12:50 PM
Subject: [linux-delhi] useradd and passwd

> I am writing a program which reads a username and password from a database
> and writes scripts that would be run through a cron job to create account.
> I am using perl to write those scripts.
> I can use a useradd to create account like
> useradd $USERNAME
> I can't give a password becuase it takes a encrypted password.
> I then try to do a passwd to modify the passwd, but how can I pass the
> arguments for the passwd command thru shell script?
> Or can you tell me any way to write a script that would create accounts
> using a username and password..
> Thanks,
> Vivek
> ------------------------------------------------
> An alpha version of a web based tool to manage
> your subscription with this mailing list is at
> http://lists.linux-india.org/cgi-bin/mj_wwwusr