Tags:
create new tag
view all tags

Question

Please help with this one smile

  1. New user registers
  2. Attaches a picture to his/her topic in the %MAINWEB%
  3. The image is not visible because the directory is not executable

The directory ../twiki/pub/People/ChrisUser is not executable, so the web server cannot access the attached image.

      drwx------   2 twiki twiki   4096 Jun 14 00:09 .
      drwxr-xr-x  10 twiki twiki   4096 Jun 14 00:09 ..
      -rw-------   1 twiki twiki  60985 Jun 14 00:09 _500___chris.jpg
      -rw-r--r--   1 twiki twiki 115562 Jun 14 00:09 chris.jpg
      -r--r--r--   1 twiki twiki 116097 Jun 14 00:09 chris.jpg,v
      

Can someone tell me what to change so that this problem does not occur ?

thank you!

Environment

TWiki version: TWikiRelease04x02x00
TWiki plugins: ImagePlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Platform

-- KeithHelfrich - 14 Jun 2008

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

Your webserver is running as user www or www-data, but the directory your twiki is installed to is owned by a user twiki. Files and directories are created as user twiki.

The easiest way to resolve this is not to separate these two users. That's what matches TWiki's default configuration closest.

Then have a look at the $TWiki::cfg{RCS}{dirPermission} and $TWiki::cfg{RCS}{filePermission} and change them so that the apache user can access directories created by user twiki. Probably add user www to group twiki and change the dirPermissions to enable the group read+xecutable flags.

Another solution would be to use the mod_suexec module of apache. Yet another is to put your twiki under sbox controll.

-- MichaelDaum - 15 Jun 2008

Change status to:
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2008-06-15 - MichaelDaum
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.