for entering passwd as a parameter via script you have to use "expect",
without passwd simple scripting shells can handle all very easily.
Prashant Vijay wrote:
> I need some help on another topic. I need to have a script that will
> interact with a software we are using. This software works client side,
> and sends my script a username and a passwd chosen by a customer. The
> script should make an account for that user.
> Basically, entries need to be made in /etc/passwd, /etc/group and
> /etc/shadow
> I can handle the entries for passwd and group but I don't know how to make
> an entry to the shadow file...someone told me that I can make a 'here'
> file which is a shell script but I can't get that to work. Could someone
> please help me out.
> thanx in advance
> -Prashant
>
> -
> [To unsubscribe, send mail to [EMAIL PROTECTED] with
> "unsubscribe firewalls" in the body of the message.]
--
----------------------------------------------------------------------
* Khurram Shahzad System Administrator
* Shaheer Technics Inc. 4th Floor, Office No. 414
* Olaya Street - P.O. Box 67073 Riyadh 11596, Saudi Arabia
*
* Phone:- 9661-460-1409 (Ext. 107) Fax: 9661-460-1911
* E mailto:[EMAIL PROTECTED] Web: http://www.shaheer.net.sa
----------------------------------------------------------------------
-
[To unsubscribe, send mail to [EMAIL PROTECTED] with
"unsubscribe firewalls" in the body of the message.]