1833012 Members
3099 Online
110048 Solutions
New Discussion

Login Banner

 
SOLVED
Go to solution
Mike Burk
Advisor

Login Banner

How do I change the CDE or command line login banner? I want to customise it.
3 REPLIES 3
Alex Glennie
Honored Contributor
Solution

Re: Login Banner

for CDE take a look at /usr/dt/config/C/Xresources and make the changes in /etc/dt/config/C/Xresources.
someone_4
Honored Contributor

Re: Login Banner

To customize the banner:
The/etc/issue is used to display whatever text you like/

And if you modify the telnet entry in the /etc/inetd.conf file to read as follows, telnet users will get it too.

telnet stream tcp nowait root /usr/lbin/telnetd telnetd -b /etc/issue

Then run inetd -c to reread configuration.



To customize log in promt.
edit the
/etc/profile like this

HOST="(`hostname |cut -d"." -f1`)"

if [ "$LOGNAME" = "root" ]; then
PROMPT="#"
else
PROMPT=">"
fi

PS1='${HOST} ${PWD}${PROMPT} '
PS2='${HOST} ${PWD}> '
export PS1 PS2
trap 1 2 3

It will look like this
/#

Richard
linuxfan
Honored Contributor

Re: Login Banner

Hi Mike,

cp /usr/dt/config/C/Xresources /etc/dt/config/C/Xresources

then modify the file(change the foreground/background colors), if you want add an image you could create a bitmap image and then copy the image to /etc/dt/appconfig/icons/C/bitmap.xpm

Dtlogin*greeting.labelString: Welcome to %LocalHost% Dtlogin*greeting.persLabelString: Hello %s
Dtlogin*logo*bitmapFile: /etc/dt/appconfig/icons/C/bitmap.xpm

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates