Re: Security Question, re directory permissions

From: Date: Fri, 18 May 2007 19:53:27 +0000
Subject: Re: Security Question, re directory permissions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-255161@lists.php.net to get a copy of this message
On 5/18/07, Al <news@ridersite.org> wrote:
I'm on a shared Linux host and have been wondering about security and directory "other" ["world"] permissions. The defaults are 755. The 'others' [world] can read them only. Is there a security hole if a dir on the doc root if a directory has permissions 757? If there is a security problem, what is it? Thanks...
If you have a directory with 757 permissions, "world" can create new files there. And if you give files 757 (or 646) permissions, then "world" can edit that file. So if you have a doc dir, you probably don't want extra files there. It's not really a security problem, but if somebody notices it, he might write files there. Tijnema

« previous php.general (#255161) next »