[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: autopasswd



Doesn't like the crypt stuff which spits
back little message like "Password too short" and "Enter NEW UNIX password:"

Brian

> 
> Did not fix it, Problem is it seems to enter the Password once and then
> usually dies.  I am running the updated Pwdb Package from Redhat.  The
> password program seems to have had some changes between the offical release
> and the update.  Here is the script I have been using
> 
> #!/usr/bin/expect -f
> # wrapper to make passwd(1) be non-interactive
> # username is passed as 1st arg, passwd as 2nd
> 
> set password [lindex $argv 1]
> spawn /usr/bin/passwd [lindex $argv 0]
> expect "password: "
> send "$password\r"
> expect "password: "
> send "$password\r"
> expect eof
> 
> If this script looks wrong please tell me, it is calling password but not
> finishing properly
> *******************************************************************************
> 			     Adam Kerasotes
> 		    Network Administrator Quincy University
> 		           E-mail:adam@quincy.edu
> *******************************************************************************
> 
> --
> To unsubscribe: mail -s unsubscribe pam-list-request@redhat.com < /dev/null
> 


-- 
Brian Jones
System Administrator
|\|ortel Information Networks



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []