We don't bite newbies here... much | |
PerlMonks |
Re: using Unix::PasswdFile to change either the password or the shell of a userby eXile (Priest) |
on Jul 29, 2006 at 23:17 UTC ( [id://564570]=note: print w/replies, xml ) | Need Help?? |
Hi,
since unix-flavors tend to use different password databases and /etc/password is mostly a relic from the past that is kept for backward compatibility issues (i think), your best bet for changing a password is using a platforms native password changing utility, for most (all?) platforms that would be the passwd utility. What I'd do is write a script that uses Expect to interact with the native password changing utility.
In Section
Seekers of Perl Wisdom
|
|