So sprach »Power Programmer« am 2001-09-14 um 13:06:05 -0700 :
> What permissions would I set a php file to that could only be ready by
> somebody logged into the server as root but still be executed via a website?

root can always read each and everything, so you don't have to care
about this "user".

For the "executed via a website" part, you need to know under which user
the web server process is running.  This user needs to be able to read
the file, and nobody else.

So, something like this:

chown <WEBSERVERUSER> file
chmod 400 file

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:       http://www.digitalprojects.com   |   http://www.iso-top.de
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
                Uptime: 1 day 11 hours 29 minutes

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to