[dokuwiki] Re: File permissions


On Jun 15, 2006, at 3:40 PM, Wouter D. Snel wrote:

Dear Ben,

Thank you very much for your email. It doesn't seem to work
however. I found a different solution however. But I'll try to figure
out what could be the problem as soon as i have some time. I think
the problem has something to do ownership of the www user on mac.

Thanks again,
Wouter

On Jun 11, 2006, at 05:58 , Ben Coburn wrote:


On Jun 8, 2006, at 6:49 PM, Ben Coburn wrote:

On Jun 8, 2006, at 12:44 PM, Wouter D. Snel wrote:

Hi there,

I'm new to the list. Just started using DocuWiki a few
days ago and i love it allready :D
I have a question concerning uploading of images (and files)
when i upload something i would like to set the permission to
777. Does anyone know how to do this?

thanx in advance!

Kind regards,
Wouter

I thought this was a general bug, but it does disapear when I upload DokuWiki to a Linux server. I'll look into this when I have a moment.



There is now a patch in the development code that fixes strange media file permissions. To get this patch just update your installation to the latest development code.


Or if you want to keep running the stable release, it is an easy change to make manually.

To manually change dokuwiki-2006-03-09b.tgz
Change line 128 in 'lib/exe/media.php' from
  if($conf['fperm']) chmod($fn, $conf['fperm']);
to
  chmod($fn, $conf['fmode']);



Some more information would help determine if this is a reproducible situation that can be resolved.... What was not working? How did you fix it?


Note that the patch I described only effects newly uploaded files. Media files uploaded before the patch was applied will need to have their permissions fixed manually.

Regards, Ben Coburn


------------------- silicodon.net -------------------

--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: