Cron task doesn't erase directory

banderas20

Member
Joined
Aug 1, 2018
Messages
96
Reaction score
39
Credits
746
Hi there.

I have a php script which creates a temp directory. Then makes other stuff and finally removes the temp directory.

If I run the script with user root directly in the CLI, everything works fine.
However, the cron task throws an error while trying to delete the temp directory. Crontab is owned by root, so the user launching the script should be the same.

¿Am I missing something here?

Thanks!

PS: using Gentoo
 


The person running the script doesn't determine what permssion's the script itself has.
 

Members online


Top