Re: move_uploaded_file isn't working

From: Gordon Burditt (gordonb.mw6xd_at_burditt.org)
Date: 08/10/04


Date: 10 Aug 2004 13:56:56 GMT


>> Why do I need 777. Is write and read acces not enough?
>
>Without access permission you can read and write files--you just can't get
>directory listings.

Without search permission (what I prefer to call x permission as
applied to directories), you may be able to read the directory
(depends on read permission), but you cannot access any files under
that directory. A mode 444 directory is pretty much useless (except
to root), as all you can do is list the files you can't access.
The same applies to a mode 666 directory (you can't create files,
either). A mode 111 directory allows you to access the files and
directories in it (subject to their permissions) *IF* you can guess
their names.

Permissions like 755 or 750 or 700 or 777 are more normal for
directories. The octal digits 2, 3, 4, or 6 are fairly unusual in
directory permissions, and in my experience, it's usually a mistake
(although I'm not claiming there is absolutely NO use for these).

                                        Gordon L. Burditt



Relevant Pages

  • Re: Unified getcwd() implementation
    ... The fact that the present implementation is inconsistent is a bug. ... user lacks search permission to some ancestor directory. ... I'm in support of the idea of unifying our getcwd ...
    (freebsd-current)
  • folder permissions...
    ... You mapped drive with a user who has permission to access ... There map it as a user who doesnt have permissions ... I gave acces to my share computer so other ... >and go to my sever and try to go in confidentials it ...
    (microsoft.public.win2000.networking)
  • RE: only access to ftp for administrators group
    ... User must have "local user access" permission to acces to the ftp ... "ripp" wrote: ...
    (microsoft.public.inetserver.iis.security)
  • restrict CDROM AND OTHER REMOVABLE DEVICES
    ... i am looking for, to apply permission to CDROM,USB storage devices and ... Other removable storage medias, want to give Readonly, for some users, ... full acces to administrators and denied permission to some others, ...
    (microsoft.public.win2000.registry)
  • restrict CDROM AND OTHER REMOVABLE DEVICES
    ... i am looking for, to apply permission to CDROM,USB storage devices and ... Other removable storage medias, want to give Readonly, for some users, ... full acces to administrators and denied permission to some others, ...
    (comp.security.misc)