Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Changing OS user password

by Ananda (Pilgrim)
on Sep 02, 2005 at 09:45 UTC ( #488592=perlquestion: print w/ replies, xml ) Need Help??
Ananda has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks! Greetings!!!

I am pressed for time and am therefore posting this query.

What are the approaches that can be adopted to change solaris system user password from within a perl program.

I am not sure if acheiving the goal using system commands thru perl would be best. Are there any packages/code designed for this purpose.

Please suggest.



Comment on Changing OS user password
Replies are listed 'Best First'.
Re: Changing OS user password
by Tanalis (Curate) on Sep 02, 2005 at 09:51 UTC
    Passwd::Solaris seems to do what you want, though it needs to run as root, which probably isn't ideal.

    You could probably achieve what you need to using Expect to call passwd directly, too.

    There's probably a bunch of other ways to do it too, but they're the first couple that come to mind.

    Hope that helps.

Re: Changing OS user password
by Roger (Parson) on Sep 02, 2005 at 10:30 UTC
    Yes there is, check out webmin that is designed to make Solaris (in fact any Unix like system) admin easy. No coding necessary, for you of course. :-)

Re: Changing OS user password
by sh1tn (Priest) on Sep 02, 2005 at 09:51 UTC
    The stats show that Linux::usermod passes Solaris tests
    but I am not sure how suitable this module can be because
    I wrote it especially for Linux.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://488592]
Approved by Arunbear
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (2)
As of 2015-11-27 03:20 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (717 votes), past polls