HeatSeekerCannibal has asked for the wisdom of the Perl Monks concerning the following question:
Greetings, wise monks...
Has anybody used Unix::PasswdFile to change either the password or the shell of a user? According to the documentation it can do both, and in my system (Perl 5.6/Solaris 9/Sparc) doesnt complain at all when executing the following example:
Where can i look for clues? When i run it through the debugger it doesnt show anything unusual.
Any log i can peruse? Any alternatives?
Thanks in advance,
Has anybody used Unix::PasswdFile to change either the password or the shell of a user? According to the documentation it can do both, and in my system (Perl 5.6/Solaris 9/Sparc) doesnt complain at all when executing the following example:
...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;
Where can i look for clues? When i run it through the debugger it doesnt show anything unusual.
Any log i can peruse? Any alternatives?
Thanks in advance,
Heatseeker Cannibal
2006-07-31 Retitled by planetscape, as per Monastery guidelines ( keep:0 edit:11 reap:0 )
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 |
Back to
Seekers of Perl Wisdom