Tags:
create new tag
view all tags

SID-01918: File permissions in configuration - a bug?

Status: Answered Answered TWiki version: 6.0.0 Perl version: 5.18.1
Category: CategoryInstallation Server OS: opensuse 13.1 Last update: 11 years ago

Struggling to get my new twiki 6.0 install working, I've come across what is likely a bug in the configuration file or twiki operation.

Under "Store settings" it asks for dirPermissions and filePermission which are supposed to be in octal, the usual 0755 and 0644 in linux. Strangely, when the configuration is saved, they are stored as decimal values (e.g., 01363 for 0755, which is incorrect). It seems that everytime configure is run, the octal value is converted to decimal, which is then read as octal and converted to another decimal, etc.

In short, every time configure is run these have to be reset to the correct decimal values 493 (for 0755 octal) and 420 (for 0644 octal).

These values are stored in the /twiki/lib/LocalSite.cfg file, where one can set the values 493 and 420 manually for correct operation. It seems that twiki wants to have these permissions stored in their decimal values.

I was not able to find this discussion/bug report in all my google searches.

Thanks for the nice software!

(What prompted the upgrade to twiki 6,0 was an upgrade of my linux system to opensuse 13.1.)

-- Brian Dushaw - 2014-05-02

Discussion and Answer

We got a report and fix: TWikibug:Item7517 configure breaks {RCS}{filePermission} under Perl v5.18.2. This is caused by a Perl bug. The fix works around the bug.

Please apply the patch, then run configure and set {RCS}{dirPermission} to 0755, and {RCS}{filePermission} to 0644.

-- Peter Thoeny - 2014-06-17

      Change status to:
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.
SupportForm
Status Answered
Title File permissions in configuration - a bug?
SupportCategory CategoryInstallation
TWiki version 6.0.0
Server OS opensuse 13.1
Web server apache 4.2.6
Perl version 5.18.1
Browser & version firefox 28.0
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2014-06-19 - 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.