Reply to Re: Unix permissions

Your name:

Reply:


Posted by Gary L. Burnore on 06/26/06 22:43

On 26 Jun 2006 15:19:32 -0800, yf110@vtn1.victoria.tc.ca (Malcolm
Dew-Jones) wrote:

>Matthew Augier \(dps\) (Matthew@dps.uk.com) wrote:
>: I have a folder which I store php generated images in. The app only seems to
>: function when I have the rights set to 0777, but I don't understand why I
>: need "execute" to read/write a PNG file. What am I missing?
>
>execute on a unix folder allows you to do wild card searches.

To be more specific, the x on directories means search, not execute.

It means you can search. (Do an ls for example) wildcards not
withstanding. Without the x, you can't ls /dirname/filename and see
a result but you can get to the file /dirname/filename with an editor
or viewer for example.

For web engines like Apache and Netscape, the search is required for
the application to access the directory.

The best thing to do is set the directory to 755 (drwxr-xr-x) or at
minimum 775 (drwxrwxr-x).

The first group of three after the dir identifier (the first
character) mean user, the second three are group and the last three
mean everyone else (or other or world). So drwxr-xr-x means The owner
of the directory can write files into the directory and group and
other can search and access those files. (x = search, r = access).

--
gburnore at DataBasix dot Com
---------------------------------------------------------------------------
How you look depends on where you go.
---------------------------------------------------------------------------
Gary L. Burnore | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
Official .sig, Accept no substitutes. | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ 0 1 7 2 3 / Ý³Þ 3 7 4 9 3 0 Û³
Black Helicopter Repair Services, Ltd.| Official Proof of Purchase
===========================================================================

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация