Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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.

TIA.

Ananda

Comment on Changing OS user password
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 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.


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. :-)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2014-12-20 06:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls