Operating System - HP-UX
1748146 Members
3780 Online
108758 Solutions
New Discussion юеВ

when i use show banner message via telnet login

 
eric wang_2
Frequent Advisor

when i use show banner message via telnet login


how to set the telnet banner
i set banner in HP-UX 11.11 11.23 11.31 OS
HP-UX 11.23 and HP-UX 11.31 can work normally
,but when I set in HP-UX 11.11 ,it doesnot not print the banner message when i login via telnet
I run in ipv4
in /etc/inetd.conf add
step1. telnet stream tcp6 nowait root /usr/lbin/telnetd telnetd \
telnetd -b/etc/issue
step2. use #/usr/sbin/inetd -c to reread /initd.conf

can anyone tell me why or what step is wrong
thanks
6 REPLIES 6

Re: when i use show banner message via telnet login

have you checked what you have in the /etc/issue file on the 11.11 system?

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Rita C Workman
Honored Contributor

Re: when i use show banner message via telnet login

Have you checked the permissions on the /etc/issue file?
Should be 644

...works for me and I don't have any -b option in my inetd.conf on this 11.11 workstation...

Rgrds,
Rita
eric wang_2
Frequent Advisor

Re: when i use show banner message via telnet login


when I login the banner message is
HP-UX hp11v1 B.11.11 U 9000/800 (ta)

but my issue file is

GenericSysName [HP Release B.11.11] (see /etc/issue)

my /etc/inetd.conf is configurated like

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

when i configurated telnet already
and i run #/usr/lbin/inetd -c

but it also show the
HP-UX hp11v1 B.11.11 U 9000/800 (tb)
it doesn't change




Re: when i use show banner message via telnet login

1. make sure you don't have a duplicate entry in the inetd.conf file... what's the output of:

grep telnet /etc/inetd.conf

2. Yoou are running "/usr/sbin/inetd -c" aren't you? Not "/usr/lbin/inetd -c" as you put in your last post (sorry when I see typos like this, I think someone is capable of making them at the command line as well as when posting to a forum)

3. Are you completely sure that inetd is reading your file correctly? Anything in /var/adm/syslog/syslog.log to suggest it has? This is what I see in my syslog when I change the telnet line in inetd.conf and run inetd -c :

# grep "New arguments" /var/adm/syslog/syslog.log
Jun 23 08:51:06 c3000 inetd[942]: telnet/tcp: New arguments for server /usr/lbin/telnetd

HTH

Duncan

I am an HPE Employee
Accept or Kudo
eric wang_2
Frequent Advisor

Re: when i use show banner message via telnet login

thanks ducan,
I have solved my problem,
because i type two telnetd in my /etc/inetd.conf,
like /usr/lbin/telnetd telnetd \
telnetd -b /etc/issue

eric wang_2
Frequent Advisor

Re: when i use show banner message via telnet login

thanks for all reply