Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Permissions on PHP script to only run locally



On 2010-03-09 12:16 +0900 (Tue), Dave M G wrote:

> I wondered if there was a permission setting I could put on the file so
> that it was only accessible by the server's local cron command, and not
> accessible by anyone coming at it from the browser.

Neither the cron command nor the user's "browser" have access rights
directly associated with them. Users have access rights. When a user
runs a program, that program can do whatever the the user is allowed to
do.

So, think about what user is running the web server that is executing
requests receceived from browsers, and as what user you're running the
maintenance script.

> If possible, what would the settings be? Permissions and ownership make
> my head explode...

Unix permissions are not very complex at all; you probably just need to
find the right explanation to help you get it.

cjs
-- 
Curt Sampson         <cjs@example.com>         +81 90 7737 2974
             http://www.starling-software.com
The power of accurate observation is commonly called cynicism
by those who have not got it.    --George Bernard Shaw


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links