Re: Permissions on File

From: Date: Fri, 14 Sep 2001 17:08:39 +0000
Subject: Re: Permissions on File
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-67394@lists.php.net to get a copy of this message
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

« previous php.general (#67394) next »