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

Expiring Password

by 3SRT (Novice)
on Nov 27, 2007 at 15:10 UTC ( [id://653258]=perlquestion: print w/replies, xml ) Need Help??

3SRT has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks!

I'm a relatively new user and have not been able to find much information about how to make a password 'expire'. I am working on a project to set a random password on a remote host through ssh, which I have done, but I need a way of resetting the hosts' password after a certain amount of time has passed. What command or function can I use to make this happen? I've tried searching CPAN, but to no avail.

I appreciate any advice. Thanks in advance!

Replies are listed 'Best First'.
Re: Expiring Password
by tcf03 (Deacon) on Nov 27, 2007 at 15:22 UTC
    >I'm a relatively new user and have not been able to find much information about how to make a password 'expire'.

    I hate to be the one to say this, but 'man passwd' might be worth looking at.

    UPDATE

    That is before trying trying anything else.
    Ted
    --
    "That which we persist in doing becomes easier, not that the task itself has become easier, but that our ability to perform it has improved."
      --Ralph Waldo Emerson
      I appreciate it. I should have known that...I looked at other man pages, but didn't look at this one. Thanks!
Re: Expiring Password
by RaduH (Scribe) on Nov 27, 2007 at 15:29 UTC
    This doesn't seem a Perl-specific question. It's rather ssh-specific. I understand you'll be using Perl to interact with that target host but having that password expire is something you need to address in Perl (make sure you get and use the new password when the old one expires), once it's set up on the other host (nothing to do with Perl there).

    I suspect you're talking about the rsa public password authentication scheme where you generate your public key and then send it to the other host for "keyless" authentication. If that is the case, I think there's little you can do. I just verified and changing the user password manually won't generate a new public key. If you're talking about the user login password, setting it to expire is a Linux admin issue (plus will probably have to be changed manually once you set it up).

    I recommend posting your question to Linux forums (linuxquestions.org is one example) where you can get better answers than here (or at least better than mine, anyway :) ).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-17 22:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found