How would I go about setting the permissions for a script so that it could only be executed by a cron job but not from a user? I am planning on using a php script via php -q /home/serverpath/script/file.php.
Questions about cron jobs and permissions
All you need to do is password protect the folder which contains your script. You can do it thru cpanel. If user tries to execute it thru http, it asks for password.
That works, thanks.
