Authen::PAM includes a FAQ.pod in which the second question is "Can I change a password non interactively?", and the answer gives full example code. Have you tried modifying your code along the lines of that example?
HugoIn reply to Re: Changing Password using Authen::PAM
by hv
in thread Changing Password using Authen::PAM
by SamQi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |