HeatSeekerCannibal has asked for the wisdom of the Perl Monks concerning the following question:
...but it just doesnt change the password.use Unix::PasswdFile; $pw = new Unix::PasswdFile "/etc/passwd"; $pw->passwd("johndoe", $pw->encpass("newpass")); $pw->commit(); undef $pw;
2006-07-31 Retitled by planetscape, as per Monastery guidelines
Original title: 'PasswdFile'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using Unix::PasswdFile to change either the password or the shell of a user
by liverpole (Monsignor) on Jul 29, 2006 at 22:28 UTC | |
|
Re: using Unix::PasswdFile to change either the password or the shell of a user
by Zaxo (Archbishop) on Jul 30, 2006 at 02:02 UTC | |
by sgifford (Prior) on Jul 30, 2006 at 16:55 UTC | |
|
Re: using Unix::PasswdFile to change either the password or the shell of a user
by rodion (Chaplain) on Jul 29, 2006 at 22:29 UTC | |
|
Re: using Unix::PasswdFile to change either the password or the shell of a user
by eXile (Priest) on Jul 29, 2006 at 23:17 UTC | |
|
Re: using Unix::PasswdFile to change either the password or the shell of a user
by Skeeve (Parson) on Jul 30, 2006 at 20:14 UTC | |
by Anonymous Monk on Sep 08, 2011 at 19:00 UTC |