http://www.perlmonks.org?node_id=246225


in reply to Unix password change

This node may be what your looking for. It talks about a few different ways to do what you need. Personaly, I'd go for the first option, which uses Expect.pm. Before you venture down that road, however, make sure you have a copy of your /etc/passwd made, just to be safe.

-- Can't never could do anything, so give me and inch, I'll make it a mile.