Red Hat Bugzilla – Bug 41552
SGML catalogs are not installed world-readable
Last modified: 2007-04-18 12:33:21 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.4-ac11-lys1 i686; en-US;
Description of problem:
For as long as I can remember RH installs SGML catalogs in mode 600.
That means only root can do any SGML editing !
These are not secret files ; these are ressource files ; everybody should
be able to read their contents
Steps to Reproduce:
1. Install a new sgml catalog rpm
2. Try any sgml editing as a normal user (in psgml mode)
3. Try do validate your result
Read the + nsgmls:/etc/sgml/catalog:1:8:E: cannot open
"/etc/sgml/sgml-docbook-3.0.cat" ; message
Expected Results: The validation should have proceeded normally without
any read error
It's a very old bug, I just got tired of changing the permissions after
every /usr/bin/install-catalog run
I can't reproduce this here, but I think I see how it's happening.
install-catalog isn't careful enough to set the permissions on files it
creates, and so they just have default (umask-determined) permissions. Root's
default umask is 022, and so this works for most people.
install-catalog needs to chmod 0644 all the files that it creates.
Should be fixed in sgml-common-0.5-6.
*** Bug 54039 has been marked as a duplicate of this bug. ***