in reply to Running a remote passwd command.

Hi tweetiepooh,

What problems are you having with the passwd command?
Have you looked at the Net::SSH module?
Also have a look at the node Password change (Newbie) for some inspiration.

Hope this helps.

Martin