Cron. Operation not permitted. Part 3

Status
Not open for further replies.

aropan18

New Member
Messages
17
Reaction score
0
Points
0
Hello,

When I try to add "/usr/bin/php -f /home/aropan/public_html/update.php >> /home/aropan/public_html/logs/update.html 2>&1" every "*/15 * * * *" I get:
Error
/usr/bin/crontab: error renaming /var/spool/cron/tmp.XXXXVx57qN to /var/spool/cron/aropan
rename: Operation not permitted.


Screenshot:
cron.JPG

Q: Are you editing the cron jobs via cPanel or some other method?
A: via cpanel

Q: Are you renaming files inside your php script?
A: No, only read, write and create files, create directory...

I think that forbade me to add new jobs cron by limiting access to the file /var/spool/cron/aropan. Whether it has something to fix.
 

cybrax

Community Advocate
Community Support
Messages
764
Reaction score
27
Points
0
Assuming the script works when called manually from a browser, I would hazzard that it's the Cron account lacking permission to perform the action. More of a security feature than a bug.


Give this a try...
Change the cron command to:

/usr/bin/php -f /home/aropan/public_html/shunt.php


shunt.php
PHP:
<?php
$url ='http://yourdomain.xyz/update.php';
header('Location: '.$url);
?>
 

xav0989

Community Public Relation
Community Support
Messages
4,467
Reaction score
95
Points
0
I'll escalate your request.
 
Status
Not open for further replies.
Top