Incorrect permissions for local.php

Bug #1072246 reported by Joseph Fox-Rabinovitz
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
dokuwiki (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Description: Ubuntu 12.10
Release: 12.10

dokuwiki:
  Installed: 0.0.20120125b-1
  Candidate: 0.0.20120125b-1
  Version table:
 *** 0.0.20120125b-1 0
        500 http://us.archive.ubuntu.com/ubuntu/ quantal/universe amd64 Packages
        100 /var/lib/dpkg/status

Using apache2 webserver, not lighthttpd.

apache2:
  Installed: 2.2.22-6ubuntu2
  Candidate: 2.2.22-6ubuntu2
  Version table:
 *** 2.2.22-6ubuntu2 0
        500 http://us.archive.ubuntu.com/ubuntu/ quantal/main amd64 Packages
        100 /var/lib/dpkg/status

Procedure for recreating bug:
- Install dokuwiki package.
- In web browser, go to localhost/dokuwiki.
- Click login, log in with admin username and password.
- Click admin button.
- Click on the "Configuration Settings" link.

Expected behavior: There should be a save button at the bottom.

Observed behavior: A blue message box appears with "The settings file can not be updated, if this is unintentional,
ensure the local settings file name and permissions are correct."

Explanation: The file /etc/dokuwiki/local.php has permissions 0664 (rw-r--r--), owner root and promary group www-data. It needs to be read by the user www-data (apache), which is impossible with the current set up.

Solution: The simplest way I was able to get this to work is by running "sudo chown www-data:root /etc/dokuwiki/local.php". Changing the permissions to give the primary group write permissions did not seem to work.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in dokuwiki (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.