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!
Re: Expiring Password
by tcf03 (Deacon) on Nov 27, 2007 at 15:22 UTC
|
| [reply] |
|
I appreciate it. I should have known that...I looked at other man pages, but didn't look at this one. Thanks!
| [reply] |
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 :) ).
| [reply] |
|