Unix/Linux Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

cronjob dies when user password expires

Solaris


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 02-01-2007
sparcguy sparcguy is offline Forum Advisor  
Registered User
 
Join Date: Nov 2006
Last Activity: 7 October 2015, 6:30 AM EDT
Posts: 381
Thanks: 3
Thanked 8 Times in 8 Posts
cronjob dies when user password expires

I noticed for some time now on solaris 8 whenever our root or oracle password expires after 12 weeks the cronjob for the expired user will totally stop working, it will start working again once the password has been changed.

I wonder if anybody encountered this problem and knows of a fix other than extending expiry period.

this is the /var/cron/log

! bad user (oracle) Fri Feb 2 08:00:00 2007
< oracle 3769 c Fri Feb 2 08:00:00 2007 rc=1

this is the /etc/default/passwd
#ident "@(#)passwd.dfl 1.3 92/07/14 SMI"
MAXWEEKS=12
MINWEEKS=1
PASSLENGTH=8
Sponsored Links
    #2  
Old Unix and Linux 02-02-2007
funksen funksen is offline Forum Advisor  
Registered User
 
Join Date: Nov 2006
Last Activity: 7 June 2017, 11:09 AM EDT
Location: Austria/Vienna
Posts: 682
Thanks: 25
Thanked 31 Times in 30 Posts
the problem is you cannot switch to a user (like cron does) and run programs when the password is expired, because you are prompted to change it

you can check the "ADMCHG" Flag in /etc/security/passwd with a rootcron first, and remove it (just works for the oracle user)

for root you just can turn the password-policy off afaik
Sponsored Links
    #3  
Old Unix and Linux 02-02-2007
Perderabo's Unix or Linux Image
Perderabo Perderabo is offline Forum Advisor  
Unix Daemon (Administrator Emeritus)
 
Join Date: Aug 2001
Last Activity: 26 February 2016, 12:31 PM EST
Location: Ashburn, Virginia
Posts: 9,931
Thanks: 64
Thanked 469 Times in 270 Posts
Actually I have wondered why Solaris does this for some time. Thanks to Open Solaris I can find the answer. It seems that Sun modified cron to use PAM and introduced this behavior in the process. So I suppose that you could probably write your own PAM module to allow expired users to run cronjobs.

I really like Open Solaris... no more mysteries. Linux
    #4  
Old Unix and Linux 02-03-2007
Create Create is offline
Registered User
 
Join Date: Jan 2007
Last Activity: 15 November 2011, 2:01 PM EST
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
yeah,

it is not actually a problem, it was designed to run that way. Best way to get around it would turn the password policy off for root to reset every 12 weeks.

Why would you want expired accounts to have access to run things?


you wouldn't, so its design is correct.
Sponsored Links
    #5  
Old Unix and Linux 02-05-2007
Tornado's Unix or Linux Image
Tornado Tornado is offline
Users Awaiting Email Confirmation
 
Join Date: Nov 2006
Last Activity: 21 October 2015, 12:28 AM EDT
Location: Melbourne
Posts: 261
Thanks: 1
Thanked 14 Times in 10 Posts
It is for this reason i wrote the pwage script, that I posted here:
Check Password Age
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Cronjob not working at user timezone Mahenaaz Red Hat 6 06-03-2011 03:16 AM
Cronjob not working from user's crontab Tuxidow Shell Programming and Scripting 3 02-11-2011 03:48 AM
Check when password expires jastanle84 Solaris 1 09-07-2010 11:23 AM
cronjob on a remote ssh without typing password chebarbudo Shell Programming and Scripting 1 12-04-2008 06:35 AM
Change Account to not lock account if password expires stringzz UNIX for Dummies Questions & Answers 1 04-04-2008 05:31 PM



All times are GMT -4. The time now is 05:24 AM.