Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

0481-124 Cannot create the cron file

Status
Not open for further replies.

bkx

IS-IT--Management
Sep 18, 2003
1
DE
as root or any other user I have a problem when editing the crontab.
crontab -e starts vi, wenn saving and exit :)wq!) then I get these error-message:
crontab: 0481-124 Cannot create the cron file in the /usr/spool/cron/crontabs directory.
.... and that on all aix-systems ... someone have a hint ?
 
check the permissions and ownership of the whole directory structure referenced in the error message.

/var: owned by bin:bin, mode 755
/var/spool: owned by bin:bin, mode 7c75
/var/spool/cron: owned by bin:cron, mode 755
/var/spool/cron/crontabs: bin:cron, mode 770

Is there anything in your cron.allow or cron.deny files?

 
From the AIX Message Guide and Reference:

0481-124 Cannot create the cron file in the /usr/spool/cron/crontabs directory
Possible Causes
You entered the crontab command and the crontabs directory does not exist.
The file system containing the directory is full.
Procedures for Recovery
Ensure that the crontabs directory exists.
Use the ls -l command to check the crontabs directory. This directory should display with permissions set to drwxrwx--- , ownership set to bin , and group set to cron .
If the crontabs directory does not exist, create it and give it the proper permission, ownership, and group by doing the following: >
Enter the su command to change to the root user.
Use the cd command to change to the proper directory.
Enter the mkdir crontabs command to create the directory.
Enter the chown bin.cron crontabs command to give the proper ownership to the directory.
Enter the chmod 770 crontabs command to give the proper permissions on the directory.
Verify that there is space left on the file system and the status is correct.
Enter the df command on the command line to list the available space in the /var file system.
If there is no available space on the file system containing the crontabs directory, remove any unnecessary files.
 
Hi Experts

I am new in AIX. I created script "/scripts/backupdb2" to backup my database.Actualy I wanna use Cron to run this script as a daily basis backup.However when I test this script it show me "backupdb2[2]: db2: not found.". This is my script (backupdb2):

echo This is will backup db2 into /home/db2
db2 backup database fella

Can any expert tell me what is wrong in my script.

Your help very appreciated.
 
Do you have a PATH= statement in your script? If you don't, the script isn't going to be able to find db2. Since this is a database backup, you may also have to set your database environment as well (just as you would if you were the db2 user).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top