Cron job failure - passwd aging feature


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Cron job failure - passwd aging feature
# 1  
Old 01-22-2003
Cron job failure - passwd aging feature

I have a script running as a cron job in machine A . This script ftps some files everyday from machine A to machine B, and mails me about the status. It works fine for some days....and suddenly stops running. By viewing the log files, I see that the script itself was not invoked by cron on those days. I do not understand why the script wasnt invoked by cron.

Also, the login under which this script runs, has the password aging feature. i.e., every 1 month or so, I have to change my login password. Yesterday, when I logged into this id to debug this script, it prompted me to change my password. I changed the password and executed the script manually to verify things. It worked fine. And since then my script is invoked by cron perfectly. Will this password aging feature have any impact on my cron jobs?

M/c is Sun OS 5.7.
# 2  
Old 01-22-2003
What are the entries made in cron?
Quote:
Will this password aging feature have any impact on my cron jobs?
It will if it's not run by root for example.

Hope it helps some.
# 3  
Old 01-22-2003
This is the cron entry.
I added the stderr redirection to my log file, just after encountering these problems.

0 19 * * * /users/mylogin/mydir/myscript.ksh 2>>/users/mylogin/mydir/myscript.log
# 4  
Old 01-22-2003
If the password aging has locked the account, then the crontab jobs will not run - I believe even the root crontab will not run.
# 5  
Old 01-25-2003
Hi

Passwd aging will be for all the users even for root
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Cron job - Need to run Cron every quarter at particular time

Hi, 1) If some job supposed to run on 1st of every month at 7 AM In cron job when we have a blackout on the 1st ( i.e when 1st falls on a sunday ) how can we make the job run the next business day? 2) How can we run a job on 25th of every quarter 7 AM(jan,apr,jul,oct) And if 25th... (5 Replies)
Discussion started by: System Admin 77
5 Replies

2. Shell Programming and Scripting

Cron Job failure - No such file or directory

Hi all, I'm having an issue with a script i wrote to pull information from the Amazon AWS API. Basically the script takes arguments from the command line and attempts to grab user information for each AWS access group. The command is issued like this: # sh awsReport.sh <outputFileName>... (3 Replies)
Discussion started by: ChocoTaco
3 Replies

3. Shell Programming and Scripting

Commented cron job -- cron monitoring

Hi I have a requirement to write a shell script,that will check the all commented job in cron job.Please help !! (2 Replies)
Discussion started by: netdbaind
2 Replies

4. Solaris

Cron job running even after cron is removed

Hi , I have removed a cron for particular user , but cron job seems to be running even after the cron entry is removed. The purpose of the cron was to sendmail to user ( it uses mailx utility ) I have restarted cron and sendmail service still user is getting mail alerts from the cron job. And... (4 Replies)
Discussion started by: chidori
4 Replies

5. Solaris

passwd cmd reenables passwd aging in shadow entry

Hi Folks, I have Solaris 10, latest release. We have passwd aging set in /etc/defalut/passwd. I have an account that passwd should never expire. Acheived by emptying associated users shadow file entries for passwd aging. When I reset the users passwd using passwd command, it re enables... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies

6. Shell Programming and Scripting

autosys job configuration for job failure.

We need to configure autosys that when a job fails continously for 3 times, we need to call another job. Is this possible in Autosys, or can anyone advice on the alternative. (2 Replies)
Discussion started by: sangea
2 Replies

7. Shell Programming and Scripting

Cron job failure

The crontab entry looks like this... 29 13 * * * /usr/bin/mk-find --printf "%D\ %N\n" | This is just a part of a long statement that has apostrophe in it. I will like to know why does it work at command prompt but fail if set as cronjob? The error is... /bin/sh: -c: line 0: unexpected EOF... (3 Replies)
Discussion started by: shantanuo
3 Replies

8. Shell Programming and Scripting

Trigger a job on autosys failure

Hi, we have thousands of autosys jobs scheduled. I want a common job or script to be triggered if any of the autosys job fails? Now, obviously i cannot have a new autosys job with condition as failure of each of 1000s of jobs. Is there an autosys script/job that invokes when any job fails and a... (1 Reply)
Discussion started by: ysrinu
1 Replies

9. Solaris

cron job starts new cron proccess

I run cron in solaris 10 zone. One cron job which syncing files to nfs mounted on container, creates after finishing another cron proccess(/usr/sbin/cron), and after 100 existing cron proccesses next cron job will not start. It's too weird for me, I'm not able to solve this problem. Theoretically... (3 Replies)
Discussion started by: ron76
3 Replies

10. UNIX for Dummies Questions & Answers

CRON usage for CRON job

can anybody explain the usage of CRON for adding a cron job. please provide an example also for better understanding !!! Thanks (1 Reply)
Discussion started by: skyineyes
1 Replies
Login or Register to Ask a Question