crontab error

Hi,

I run crontab -l ,then i got error message like "crontab: can't open your crontab file."

I checked for entry in cron.allow and entry was present, nothing in cron.deny.

Note: It is working for another user.

Can someone suggest?

This message will come when you don't have anything in your crontab file, hence you need to use below command to create a crontab file for your user.

 
export EDITOR=vi [provides vi to open crontab file, else you will see a number and a ?]
crontab -e

If you are sure that crontab for the user is not empty, then you need to check the permission of user crontab file in below location

 
/var/spool/cron/crontabs.

It must be owned by the user.

Regards,
Vishal

Thanks Vishal, I have export the EDITOR then its working fine. Thanks a lot for your helping.