ROSA Linux Bugzilla – Bug 3212
Wrong permissions for the /usr/lib/python2.7/site-packages/python_dateutil-2.1-py2.7.egg-info/top_level.txt
Last modified: 2013-11-27 21:33:12 MSK
Description of problem:
When I try to run jekyll I have an error:
Liquid Exception: Failed to get header. in _posts/2013-11-25-welcome-to-jekyll.markdown
Despite the fact that jekyll is written on ruby, it uses python script (/usr/lib/ruby/gems/1.9.1/gems/pygments.rb-0.5.4/lib/pygments/mentos.py). And the bug is an incorrect rights on the /usr/lib/python2.7/site-packages/python_dateutil-2.1-py2.7.egg-info/top_level.txt file.
This file has permissions as 600, so it is readable only for root. When I did:
chmod a+r /top_level.txt
jekyll works well for me.
Thanks. Permisisons for all files inside python_dateutil-2.1-py2.7.egg-info have been fixed. The updated package is being built now, will be available in repositories soon.
Would be good to add, the permissions check to ABF. This is a common bug.
When I run the "sudo find /usr -type f -user root -perm 600" command I get following list of files
On Ubuntu I have not such files at all.
We do have such kind of check, but it is not considered to be crucial and doesn't stop the build (unless you have more than 50 files non-readable by user in a pakcage).
There is even some statistics here:
As you can see, the check is rather rough; maybe some of that files should really be non-readble by ordinary user. Though I'd say that files inside /usr/share/doc and /usr/share/man should be always readable, maybe it makes sense to improve rpmbuild/spec-helper to automatically change file permissions for such files when building a package.