Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do you add a (GUI) login banner in Solaris 11? I've done quite a bit of searching and have found many things on SSH and FTP banners/motd for remote logins, but not much for the local GUI login. I found a few things that mention editing /etc/gdm/custom.conf (mainly for Linux, nothing specifically Solaris). However, none of the suggested changes seem to affect the login screen. Is there something different you have to do to make this work in Solaris 11 or is it not possible?

share|improve this question
After more searching, and many different combinations of keywords, I finally discovered some answers, in the Oracle Solaris 11 documentation, no less. I guess I'll post an answer here in hopes that it might be useful to someone else. – Herohtar Nov 14 '12 at 6:37
up vote 4 down vote accepted

Several options for "login banner"-like behavior are presented in the Securing the System section of the Oracle Solaris 11 Security Guidelines. The solution that does exactly what I was looking for is Option 3, which involves editing the actual GUI for the login screen using the GTK+ interface designer to add a label with the desired message.

A slightly less involved method that comes close is the first part of Option 2, which is to add the following code to /etc/gdm/Init/Default:

/usr/bin/zenity --text-info --width=800 --height=300 \
--title="Security Message" \

This will display a dialog box with the message before the login screen comes up. (Note: This assumes that your login banner text is contained in /etc/issue)

There are other options listed, but they all display the message after a user has entered login details.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.