Tags:
create new tag
view all tags

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

TWiki version: 4.0.1
TWiki plugins:  
Server OS: Debian 3.3.5-13
Web server: Apache 1.3.3
Perl version:  
Client OS:  
Web Browser:  
Categories:  

-- DaveCrawford - 18 Mar 2006

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.

Do I get points for answering my own question? smile

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

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2006-03-27 - PeterThoeny
 
  • 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.