Description
Testing the installation of 1.6 dev code the user recognized
[Errno 13] Permission denied: '/usr/lib/python2.4/site-packages/MoinMoin/i18n/ar.MoinMoin.po
All po files are not world readable. They are owned by root.
The task is to find out if this still happens (check two different linux distributions), different umask settings and python version 2.3, 2.4 and 2.5. Compare owner/mode of installed .po files with installed .py files. Present your results in a structured way.
This task needs 10h, access to different machines and has to be completed within 7 days.
Steps to reproduce
change the mode of all files in the installation directory to -rw-rw---- (chmod -R o-rwx moin-1.6rc2) -- ErnestasLiubarskij
Example
Component selection
belongs to dev 1.6
- general
Details
1.6 dev changeset: 1701:3c6f59cafbbe
MoinMoin Version |
|
OS and Version |
|
Python Version |
|
Server Setup |
|
Server Details |
|
Language you are using the wiki in (set in the browser/UserPreferences) |
|
Workaround
Use umask 0022 before using setup.py.
I'm not sure about umask, but you have to set the mode of the files in the installation dir to -rw-rw-r-- (chmod 664 - thanks to Robert Heckendorn for mentioning this). -- ErnestasLiubarskij
I also got a report about this workaround not working on MacOS. In this case it is suggested to do chmod 644 on i18n/*.po files (thanks again to Robert Heckendorn). Unfortunatelly I don't have a computer with this OS to test it. -- ErnestasLiubarskij
Discussion
Can you still reproduce this?
What is your umask when executing the setup.py?
It looks like the files are copied from MoinMoin/i18n/ without changing theire rights. If I set umask 037 and do clone the repository they all have the rights -rw-r----- which are then the same rights in /usr/lib/python2.4/site-packages/MoinMoin/i18n/ after executing setup.py. All py files do have -rw-r--r-- rights. Changing the umask to 033 and fetching a clone gives after installation -rw-r--r-- for the po files.
Hmm, sounds like a distutils shortcoming that is easily worked around with umask.
Seems to be related to the used python version. On 2.5 I don't get this problem.
It seems to be not related to a distribution and a python version. I can't reproduce this bug with the default mode of installation files (I'm using moin-1.6.0rc2.tar.gz). The only way I could reproduce this bug was to set the mode of those files to -rw-rw---- manually and then install moin using setup.py. You can see the results of my tests on the page ErnestasLiubarskij/MissingRightsI18n -- ErnestasLiubarskij
Plan
- Priority:
- Assigned to:
- Status: