Operating System - HP-UX
1833784 Members
2490 Online
110063 Solutions
New Discussion

crontab -l sh: crontab: Execute permission denied.

 
thijs lankhorst_1
Frequent Advisor

crontab -l sh: crontab: Execute permission denied.

Hi there. I have a problem with cron not doing anything. I had to restore on of our test environments and had to overwrite existing data. Since then cron doesnt seem to be working at all. Cron starts via init.d and the root user is in cron.allow. Have compared the settings to other machines but cant find anything different. If i try to execute crontab -l the following error comes back:sh: crontab: Execute permission denied.

Actually the only difference i found was that /usr/adm (what is linked to /var/adm) has a sticky bit at the end. But changing the permissions to 777 hasnt solved this either.

more cron.allow
root
adm
uucp
oracle
xxadmin
sched


5 REPLIES 5
RAC_1
Honored Contributor

Re: crontab -l sh: crontab: Execute permission denied.

Which user id do you use when doing crontab -l?
There is no substitute to HARDWORK
thijs lankhorst_1
Frequent Advisor

Re: crontab -l sh: crontab: Execute permission denied.

Hi there. the root user
thijs lankhorst_1
Frequent Advisor

Re: crontab -l sh: crontab: Execute permission denied.

Its OK... It seems to be connected to the CA esecure software we have running on our system.
RAC_1
Honored Contributor

Re: crontab -l sh: crontab: Execute permission denied.

ll `which crontab`
ll /var/adm/cron
ll -d /var/adm/cron
ll /var/spool/cron

ll -d /var/spool/cron
ll -d /var/spool/cron/crontabs
There is no substitute to HARDWORK
Muthukumar_5
Honored Contributor

Re: crontab -l sh: crontab: Execute permission denied.

Permission to crontab has to be like,

4555 root:bin

# chmod 4555 /usr/bin/crontab
# chown root:bin /usr/bin/crontab

--
Muthu
Easy to suggest when don't know about the problem!