Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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 ( #564570=note: print w/replies, xml ) Need Help??


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

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.

  • Comment on Re: using Unix::PasswdFile to change either the password or the shell of a user

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://564570]
help
Chatterbox?
[Tanktalus]: Wow, given the time separation of marioroy's oatmeal cookies and Disciplulus' response, I'm amazed that marioroy responded :)
[Discipulus]: no no seriously, redss posed a good question in the right moment, and you gave as always wonderful answers
[Discipulus]: Tanktalus my comment was about how to fork & join in tk?
[marioroy]: Oh, I've might of missed Discipulus's earlier response. I had gone to bed.
[Tanktalus]: ah, I don't even have the perlmonks site open in my browser :)
Tanktalus is chatting through his cbstats application :)
[marioroy]: Perl is so much fun.
[Discipulus]: Tanktalus i recently started a Meditation about marioroy's MCE suit of modules, but is even better to see a practical question answered than responses to my meditation

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2017-04-23 19:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (432 votes). Check out past polls.