in reply to using Unix::PasswdFile to change either the password or the shell of a user

Solaris uses /etc/shadow for passwwords.

s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
+.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e

Replies are listed 'Best First'.
Re^2: using Unix::PasswdFile to change either the password or the shell of a user
by Anonymous Monk on Sep 08, 2011 at 19:00 UTC
    Right if the change the line $pw = new Unix::PasswdFile "/etc/passwd"; to $pw = new Unix::PasswdFile "/etc/shadow"; it should work.