Question
When creating a new web the dirPermissions I have configured are not being honored. While debugging I finally went as far as hard-coding an octal in RcsFile.pm (line 114):
File::Path::mkpath($path, 0, 0777);
But the new web is created as:
drwxr-xr-x 2 www-data www-data 4096 Mar 18 08:52 TestWeb
Can anyone else confirm this behavior?
Environment
--
DaveCrawford - 18 Mar 2006
Answer
If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.
Do I get points for answering my own question?
I solved this issue by setting apache's umask by adding umask 0007 to the init.d script.
-Dave
--
DaveCrawford - 19 Mar 2006
Glad it worked out, closing.
--
PeterThoeny - 19 Mar 2006
I have the same problem. But I cannot fix it with your solution, because I'm running TWiki on a web server not owned by me, where I can't change its umask.
Any solution for that?
--
ThomasSchneider - 26 Mar 2006
I do not think it is necessary to modify the TWiki code, nor change the init.d. Make sure that the data directories and files are owned by the webserver user. Same for pub dir.
--
PeterThoeny - 27 Mar 2006