http://qs1969.pair.com?node_id=488596


in reply to Changing OS user password

Passwd::Solaris seems to do what you want, though it needs to run as root, which probably isn't ideal.

You could probably achieve what you need to using Expect to call passwd directly, too.

There's probably a bunch of other ways to do it too, but they're the first couple that come to mind.

Hope that helps.