Re: Using passwd in a script

From: Al Weston (alweston@NEWSCENE.COM)
Date: Mon Sep 29 2003 - 19:44:16 EDT


Try expect:

http://expect.nist.gov/

At 12:36 PM 9/29/2003 -0400, you wrote:
>You can do the following:
>
>echo "newpassword" | passwd --stdin username
>
>
>HTH
>
>On Thu, 11 Sep 2003, Oscar Penaloza wrote:
>
> > Hello everyone,
> >
> > I'm looking for a basic shell script to change password in background to
> > several AIX, without keyboard input. Anyone have any ideas?!?!?
> >
> > Thanks,
> >
> >
> > Oscar Peņaloza
> > Unix Systems Administrator
> > openaloz@co.ibm.com
> >
>
>--
>Gashaw Mengistu
>Lead Systems Administrator
>Oracle9i DBA Certified Professional
>Howard University



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:15 EDT