Description

Since I have installed the latest MoinMoin update (1.5.6), new pages are created with permission 600 instead of 660.

Steps to reproduce

  1. Edit or create a new page.
  2. Check the file permission.

Example

For example, after editing (for the first time), the WikiSandBox, I get :

# ls -l *
-rw-r--r--  1 www-data www-data    9 2007-01-01 16:44 current
-rw-------  1 www-data www-data   97 2007-01-01 16:44 edit-log

attachments:
total 16
-rw-r--r--  1 www-data www-data 4066 2006-12-03 10:47 mytest.draw
-rw-r--r--  1 www-data www-data  479 2006-12-03 10:47 mytest.map
-rw-r--r--  1 www-data www-data 4899 2006-12-03 10:47 mytest.png

cache:
total 16
-rw-------  1 www-data www-data    14 2007-01-01 16:44 pagelinks
-rw-------  1 www-data www-data 10900 2007-01-01 16:44 text_html

revisions:
total 8
-rw-r--r--  1 www-data www-data 1334 2006-12-03 10:47 00000001
-rw-------  1 www-data www-data 1342 2007-01-01 16:44 00000002

Component selection

Details

MoinMoin Version

1.5.6

OS and Version

Debian Stable

Python Version

2.3.5

Server Setup

TwistedWeb

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

French

Workaround

Manually change file permissions after each update :(

Discussion

Please check what you use as umask on OS level for the user the wiki server process runs as (see shell / user profile script).

We do a umask call from python at the beginning of moin startup, but I guess we can't make the umask less restrictive than it already is.

I am closing this "bug" now, if that hint doesn't solve your problem, please reopen it.

/!\ twistd does some hardcoded os.umask(077) call when daemonizing the app, please try running it with -n (nodaemon) and report back if file modes are as expected then.

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/IncorrectFilePermissionsOnNewOrChangedPages (last edited 2007-10-29 19:19:44 by localhost)