Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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.



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
[trippledubs]: man I thought Gone With the Wind was about the Civil war

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2018-02-20 04:50 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (267 votes). Check out past polls.