Question
Please help with this one
- New user registers
- Attaches a picture to his/her topic in the
%MAINWEB%
- 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
--
KeithHelfrich - 14 Jun 2008
Answer
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