HPUX / reboot and crontab

Posted on 2011-04-27
Last Modified: 2012-05-11
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?

Question by:sonriks
    LVL 10

    Expert Comment

    Maybe the user is listed in /var/adm/cron/cron.deny or not listed in /var/adm/cron/cron.allow.
    LVL 1

    Author Comment

    the login is listed in the /var/adm/cron/cron.allow file
    LVL 76

    Accepted Solution

    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
    LVL 1

    Author Comment

    there are no references in init.d dir to the username whose crontab file is  being reinitialized.
    LVL 76

    Expert Comment

    by:slightwv (䄆 Netminder)
    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.
    LVL 61

    Expert Comment

    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...
    LVL 1

    Author Closing Comment

    Investigation showed that there was a startup script whichpurged this particular user's crontab file.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    I don't know if many of you have made the great mistake of using the Cisco Thin Client model with the management software VXC. If you have then you are probably more then familiar with the incredibly clunky interface, the numerous work arounds, and …
    Windows 10 is here and for most admins this means frustration and challenges getting that first working Windows 10 image. As in my previous sysprep articles, I've put together a simple help guide to get you through this process. The aim is to achiev…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now