If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > Password Expiration and Cron Job

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-15-03, 04:01
kinsun kinsun is offline
Registered User
 
Join Date: Jul 2003
Posts: 9
Password Expiration and Cron Job

We are using Solaris with password expiration policy activated.
It is found that when the password of an user account is expired, the cron job of it does not work anymore.

Could any expert give me hint how to let the cron job work even though the password is expired?

Thanks!
Reply With Quote
  #2 (permalink)  
Old 09-17-03, 22:42
ddent ddent is offline
Registered User
 
Join Date: Sep 2003
Posts: 4
I'm not familiar with the intricacies of Solaris but one way you could do it would be to not use the automagic password expiry and instead have a script that changes the password to a random string after it expires (you handle the expiration with a database yourself with a simple script that is run by cron).
Reply With Quote
  #3 (permalink)  
Old 09-17-03, 22:43
ddent ddent is offline
Registered User
 
Join Date: Sep 2003
Posts: 4
One thing to add: You'll also have to have your script handle changing the password to re-enable an account, probably by keeping track of what the old hash was. Then what you'll do is set users' shells to a special script designed to allow them to change their password.

Of course, I may be complicating this... there may be a way to do this without going to all this trouble, I just don't know it.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On