Can’t Open Your Crontab File

When trying to create a scheduled job gives me the following error;

sybase12@pwc/tmp#crontab -l
crontab: can’t open your crontab file.


Reviewing /etc/cron.d/cron.deny file, not appear that my user is denied;

sybase12@pwc/etc/cron.d#cat cron.deny


Looking for that there is a cron file, no file associated for the sybase12 user;

sybase12@pwc/etc/cron.d#ls -lrt /usr/spool/cron/crontabs/
total 11
-rw——- 1 root sys 308 ago 6 2010 sys
-rw——- 1 root sys 190 ago 6 2010 adm
-r——– 1 root root 452 ago 6 2010 lp
-r——– 1 root sys 404 sep 29 12:55 uucp
-rw——- 1 root root 742 nov 14 11:02 root


From Doc;

If you are creating or editing a crontab file that belongs to root or another user you must become root.

You do not need to become root to edit your own crontab file.

Create a new crontab file, or edit an existing file.

crontab -e [username]

where username specifies the name of the user’s account for which you want to create or edit a crontab file. You can create your own crontab file without superuser privileges, but you must have superuser privileges to creating or edit a crontab file for root or another user.




Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s