Monday, June 11, 2012

Login Banner for Redhat 6 (RHEL6) Issues

Issue:
Problems occur after lengthy log-in banner is added
Environment:
Redhat 6 with Gnome Login Environment
Solution:
First, let's enable the banner:

gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory/ --type boolean --set /apps/gdm/simple-greeter/banner_message_enable 1

Second, let's add the banner's full text (no returns):
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory/ --type string --set /apps/gdm/simple-greeter/banner_message_text "YOURBANNERHERE"

Problem 1: No return lines 
First, navigate to the file which contains the banner, %gconf.xml
cd /etc/gconf/gconf.xml.mandatory/apps/gdm/simple-greeter/

Second, modify the file. Locate the banner text and add returns as needed.

Problems 2 and 3: Centered text. Part of the user list is cut off!
First, navigate to the login banner configuration file
cd /usr/share/gdm
Second, backup this file, as modifying it can be very dangerous!
cp gdm-greeter-login-window.ui gdm-greeter-login-window.ui.bak
Third, locate the "auth-banner-label" section in this file and modify/add code in red:

<object class="GtkLabel" id="auth-banner-label">
   <property name="visible">True</property>
   <property name="justify">left</property>
   <property name="wrap">True</property>
</object>
   <packing>
      <property name="expand">False</property>
      <property name="fill">False</property>
      <property name="position">3</property>
   </packing>

No comments:

Post a Comment