Log in

View Full Version : Just a quickie CHMOD question


Jinovich
01-12-2009, 04:32 PM
I have cron.php file, I want my server to be able to execute this file when it is due in crontab however I don't want people to be able to execute this just by navigating to www.mydomain.com/cron.php.

What would be the best way to prevent the public but allow the server.

Bellardia
01-12-2009, 08:45 PM
I believe 770 is what you'd use. But wait for verification.

Dismounted
01-13-2009, 04:31 AM
770 should be the one (execute/read/write permissions for owner and group, none for the public).