I'm trying to set up a cronjob on our webserver. We have an FTP user and a shell user, and i made the cronjob on the shell user, obviously. The idea is that once every 24-hours, the cronjob deletes all files in a specific folder. I've set up the cronjob through the DreamHost panel to run every ten minutes (For testing purposes), the command itself looks like this:
rm -r -f ../blockpark/blockpark.com/wp-content/plugins/minotar-minecraft-avatars/avatars/*
But for some reason the files are never deleted. If i log in through SSH and run the exact same command from the shell, i'm told i don't have the needed permissions to delete said files. What do i do?