in the /usr/share/X11/xkb/rules/base.lst file under the section named layout. Save the file and restart the sshd server with the command /etc/init. If the banner message does not show, make sure you have run the dconf. Add the following line to the end of the file: etc/issue file and add the contents of the warning banner.Įdit the file /etc/ssh/sshd-banner to add the contents of your warning banner and save the file.Įdit the file /etc/ssh/sshd_config. Logout of the graphic desktop, and the login screen should now show the message. Gconftool-2 -get /apps/gdm/simple-greeter/banner_message_text (Verify that the settins are correct using these two commands) ![]() ![]() Gconftool-2 -direct -config-source xml:readwrite:/etc/gconf/ -type boolean -set /apps/gdm/simple-greeter/banner_message_enable 1 Gconftool-2 -direct -config-source xml:readwrite:/etc/gconf/ -type string -set /apps/gdm/simple-greeter/banner_message_text "Your Message Here" To make the changes through a command line interface use the following commands as the root user: You can then modify the entry in the method described above. Locate the entry then right-click it and "Unset key". To access the mandatory entries run gconf-editor as the root user then from the "File" menu select "New Mandatory Window". Note: Once you have made an entry "mandatory" it cannot be modified through the gnome editor until it is removed from the gconf mandatory section. The login screen should now show the message just above the login name field. Repeat for the second setting.Ĭlose the gconf editor and logout. Do this by right clicking one of the two settings and select "Set as Mandatory". ![]() Once these settings are modified they must be set as "mandatory" so it will be in effect for all users on the system. In the simple-greeter settings, on the right, you will see the following two settings that must be changed:Įnable the banner message by putting a check mark in the box next to banner_message_enable.Įnter the message you would like to display in the banner_message_text by double-clicking the selection (or right-click and select Edit Key). Under the gdm selection highlight "simple-greeter". In the gconf editor, on the left side of the screen expand the following selections: To use the gconf-editor you must be logged into the graphic desktop and the gconf-editor program must be run as the root user.įrom the desktop open a terminal window and as the root user run the command: This can be done through the gconf-editor or by using the command line tools. Uncomment this line (by removing the pound sign) and add the path to where the text file containing the warning banner is located. Listed below are the steps to enable the banner for each type of login: Each login method requires its own solution to enable the warning banner.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |