How to Create Banner/Login Messages in Solaris.


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users How to Create Banner/Login Messages in Solaris.
# 1  
Old 03-03-2006
How to Create Banner/Login Messages in Solaris.

Hi,

I have been trying to create a banner/login message (something for displaying the usage policy etc) to appear while I login using telnet/FTP to any Solaris (pref. Solaris9) machine. I have tried using /etc/issue and /etc/motd files. Both do not solve my need. In that, /etc/issue displays the whole message each time the login fails and the message in /etc/motd occurs only after logged into the session.

I need to display a message that occurs only once - i.e while opening a telnet session/FTP session. What should I do to get this running?

Regards,
M.

Last edited by mahatma; 03-03-2006 at 09:36 AM.. Reason: Typo
# 2  
Old 03-03-2006
for telnet you could create a "/etc/default/telnetd" file

Code:
root@jumpy # cat /etc/default/telnetd
BANNER="\\n\\nThis should be a telnet banner\\n\\n"
root@jumpy # telnet localhost
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

This should be a telnet banner

login:

gP
# 3  
Old 03-03-2006
just a doubt,

what if I have the same banner message in /etc/motd; /etc/issue and /etc/default/telnetd files

will the banner text of /etc/motd and /etc/issue files (displaying the banner for every failed and successful login ) do override that of /etc/default/telnetd
# 4  
Old 03-03-2006
Java

Smilie
for ftp you could create the file in /etc/ftpd/banner.msg

Code:
root@jumpy # cat /etc/ftpd/banner.msg
test by pressy
root@jumpy # ftp localhost
Connected to localhost.
220-test by pressy
220-
220 jumpy FTP server ready.
Name (localhost:root):

you could change your banner file in /etc/ftpd/ftpaccess
"banner /etc/ftpd/banner.msg"

regards PRESSY
# 5  
Old 03-03-2006
Quote:
just a doubt,

what if I have the same banner message in /etc/motd; /etc/issue and /etc/default/telnetd files

will the banner text of /etc/motd and /etc/issue files (displaying the banner for every failed and successful login ) do override that of /etc/default/telnetd
mhm.... just tried it. "/etc/default/telnetd" is displayed first, then /etc/issue.... /etc/motd is only displayed after a successful login, but it does not override it..


gP
# 6  
Old 03-03-2006
I have created this telnetd file (it did not exist previously) and have entered the neccessary details. It still does not work.
By the way, there exists another server where the messages appear as required without the existance of both these files (/etc/default/telnetd and /etc/ftpd/banner.msg). How is that?

Thanks.
# 7  
Old 03-04-2006
if the working box is using the same os as the non-working box --- investigate how it works on that good box and copy the change into the other box ... cuts down on the guesswork ...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Ssh login with random qoute banner

I'll be honest here The one and only time I have done LDAP user and login configuration was for my RHCSA exam, and that was many years ago I have this interview coming up (for a linux admin position role), and while the other questions I have no problem answering I am stuck with this (image... (5 Replies)
Discussion started by: hedkandi
5 Replies

2. Shell Programming and Scripting

How to change banner message for console login?

Hi All, Whenever I login to server via console, after providing username (root) it displays a banner message. I want to remove this message Serverabc : root Welcome to Server !!! Password: It is Centos 5.4 box. I have checked /etc/issue and /etc/motd. It does not... (8 Replies)
Discussion started by: kalpeer
8 Replies

3. AIX

Last login details in banner

Friends!! I need your help. Where can i change/set the last login details as below in aix 5.3. And how to do that to get the results as exactly below login as: mbpops mbpops@xx.28.3.24's password: Last unsuccessful login: Mon Nov 22 14:32:27 GMT 2010 on ssh from 10.132.5.129 Last login:... (17 Replies)
Discussion started by: kmvinay
17 Replies

4. UNIX for Dummies Questions & Answers

Display banner before login.

How would i force All connection oriented network services to display a legal warning in terms of banner before any fuctional operation by user? ---------- Post updated at 12:54 AM ---------- Previous update was at 12:33 AM ---------- I would like to do this for ssh service first. (2 Replies)
Discussion started by: pinga123
2 Replies

5. HP-UX

telnet banner message before login

why I didn't set /etc/inetd.conf telnet stream tcp nowait root /usr/lbin/telnetd \ telnetd -b /etc/issue only telnet stream tcp nowait root /usr/lbin/telnetd in /etc/ineted.conf but when I telnet my HPUX machine it shows those message HP-UX hp1008 B.11.31 U ia64 (tb) login: ... (1 Reply)
Discussion started by: alert0919
1 Replies

6. UNIX for Advanced & Expert Users

CDE Login Banner

I'm having problem with the CDE pre login banner. I configured the c/usr/dt/config/C/Xresources file to add my warning message: Dtlogin*greeting.labelString: My Banner I then modified the Dtlogin*greeting*fontList to display the message in smaller text. This did not work. ... (1 Reply)
Discussion started by: equismorio
1 Replies

7. HP-UX

Hp-ux login banner

Hi, How do i create a login banner for hp-ux users. Is there somewhere i can get a step by step explanation? (4 Replies)
Discussion started by: dowell
4 Replies

8. Linux

login banner

Hi, I have added in banner in both /etc/banner and /etc/issue.net one by one in Linux but the banner is not displaying while user type username and enter I have restarted the ssh service also Any idea why? (3 Replies)
Discussion started by: manoj.solaris
3 Replies

9. BSD

How to i change the login banner in obsd 3.3

Hi is it possible to change the login banner ? i now it`s somthing with /etc/gettytab and think i have found the line that give out the output "OpenBSD/i386 (hostname) (ttyC1) now for my question can i change the default:\ :np:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200: i... (2 Replies)
Discussion started by: vip3r
2 Replies

10. BSD

Change the Login banner for obsd 3.3

Hi is it possible to change the login banner ? i now it`s somthing with /etc/gettytab and think i have found the line that give out the output "OpenBSD/i386 (hostname) (ttyC1) now for my question can i change the default:\ :np:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200: i whant to use... (1 Reply)
Discussion started by: vip3r
1 Replies
Login or Register to Ask a Question