• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1343
  • Last Modified:

HPUX / reboot and crontab

Hi folks,

The past two times I've had to reboot a particular HPUX server, one of the user's crontab file in /var/spool/cron/crontabs .... (only one particular user) gets zero'ed out. All the other files in the dir remain intact.  Any ideas on where to start looking for the cause?

1 Solution
Maybe the user is listed in /var/adm/cron/cron.deny or not listed in /var/adm/cron/cron.allow.
sonriksAuthor Commented:
the login is listed in the /var/adm/cron/cron.allow file
slightwv (䄆 Netminder) Commented:
Check through your startup/shutdown scripts to see if there is a script that might have a bug in it.

Where 'username' is the owner of the crontab file:

find /sbin/init.d -exec grep username {} \; -print
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

sonriksAuthor Commented:
there are no references in init.d dir to the username whose crontab file is  being reinitialized.
slightwv (䄆 Netminder) Commented:
Do you have support with hp?  You might want to contact them on this one.

how much data is on this machine?  Can you afford to run that find/grep from '/'?

Can you reboot again?

Thinking maybe set the permissions to read only and change the owner to root.  reboot and see if anything shows up in the rc log about trying to reset/remove/touch that file.
check all possible hardware logs.
I suspect a filesystem structure error for that particular file, probably borne from disk wear and following read error.

this usually happens to mail spool directories in 5 years...
sonriksAuthor Commented:
Investigation showed that there was a startup script whichpurged this particular user's crontab file.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now