XML Error Parsing Error for loading theme RHEL

Latest response

This is for RHEL5.

I'm having to modify the graphical desktop environment based on a STIG Requirement (GEN000402) so that a Login Banner appears for all users. This is the code that I've added to the following file:

/usr/share/gdm/themes/RHEL/RHEL.xml


<item type="rect" id="custom-dod-banner"> <pos anchor="nw" x="20%" y="10" width="80%" height="100%"/> <box> <item type="label"> <normal font="Sans Bold 9" color="#ffffff"/> <text> Insert the "approved text" here based on the character limitations imposed by the system. </text> </item> </box> </item

Once I've modified this, I'm getting the following on the login screen.

 There was an error loading the theme RHEL 
 XML Parse error reading /usr/share/gdm/themes/RHEL/RHEL.xml

 There was an error loading the theme, and the default theme could not be loaded.  Attempting to start the standard greeter.  

Instead of getting the Red RHEL5 login screen, I get a generic grey box with a bluish

I've looked around online and no solutions. I think the XML code is tagged ok, however I don't have it nested, so I'm not sure if that will be a problem or not.

Any ideas?

Responses

xmllint warned about a missing '>'. The last line should be

</item>

Sorry, when I copied the xml code I forgot the " > ." The closing > is there and still not working.

So this URL was sent onto to me:

http://people.redhat.com/swells/scap-security-guide/RHEL/5/output/ssg-rhel5-guide-stig-rhel5-server-upstream.html

To enable displaying a login warning banner in the GNOME Display Manager's login screen, run the following command:

sudo -u gdm gconftool-2 \
  --type bool \
  --set /apps/gdm/simple-greeter/banner_message_enable true

To set the text shown by the GNOME Display Manager in the login screen, run the following command:

sudo -u gdm gconftool-2 \
  --type string \
  --set /apps/gdm/simple-greeter/banner_message_text \
  "Text of the warning banner here"

However I'm getting either "GDM already running, Aborting" error and if I try to kill any unnecessary GDM processes there are issues with the Gnome session and I get logged out.

I didn't think that this STIG would be that hard to implement.

I fixed it. Looked more around on google and did the following:

  • modified the following file: /etc/gdm/custom.conf

  • with the following:

[greater] InfoMsgFile=/etc/issue.net

Its just a simple grey box, however it has the Legal Agreement that is needed per the STIGS

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.