Welcome to the Monastery | |
PerlMonks |
Re^2: using Unix::PasswdFile to change either the password or the shell of a userby Anonymous Monk |
on Sep 08, 2011 at 19:00 UTC ( [id://924910]=note: print w/replies, xml ) | Need Help?? |
Right if the change the line
$pw = new Unix::PasswdFile "/etc/passwd";
to
$pw = new Unix::PasswdFile "/etc/shadow";
it should work.
In Section
Seekers of Perl Wisdom
|
|