directory permissions



PTM: Is there any way to set directory permissions so, that every directory in a tree gets predetermined permission no matter who has greated the directory ? Still the files in directories should have those permissions set by normal umask.

I have a directory tree for pictures and my users upload there pictures by Samba, SFTP and whatever.
I have written a CGI script, who should be able to write some files to the directories of the tree and the files should be readable by browser.
As far as I understand, the directory should have 777 permissions to make the files visible to the browsers and changeable for the script. The files 755 to make the system secure.

It seems that the CGI script can not change the permissions of the directories created by other users.

If there is any other solution, I would be gratefull.
.



Relevant Pages

  • Re: Strange linux-next build error
    ... the bug triggers. ... of the tree and started the build. ... permissions, the correct ownerand all that - so I didn't look deeper. ...
    (Linux-Kernel)
  • Help! IE6 Registry Hacked
    ... The registry key tree permissions for HKCU\Software\Microsoft\Internet ... I know I can manually fix this by logging in as Admin, ... permissions, and then re-creating the tree, but this is quite painful. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: extended attributes
    ... Anyone know why vim behaves ... give it the appropriate ownership and permissions (and these ... "copy" one tree to another. ... on disk once: each file just appears twice, once in each tree ("it has ...
    (Fedora)
  • Re: best dns config for new tree in forest
    ... Policies can be reset with DCGPOfix.exe ... Having to manage all the permissions and owership on existing ... tree to migrate all of my child domains into. ... If it is in a new forest there is only ONE way to setup AD Integrated DNS ...
    (microsoft.public.windows.server.dns)
  • Re: directory permissions
    ... I have a directory tree for pictures and my users upload there pictures ... I have written a CGI script, who should be able to write some files to ... the directories of the tree and the files should be readable by browser. ... the directory should have 777 permissions to ...
    (alt.linux)