Operating System - HP-UX
1752569 Members
5046 Online
108788 Solutions
New Discussion юеВ

Re: Welcoming users with friendly script

 
Dave Walley_1
Occasional Contributor

Welcoming users with friendly script

Hi.

I want to present my users who logon via telnet with a friendly screen rather
than the /etc/issue file. How do I go about doing it.

I made an entry in the inetd.conf file in the /etc directory but it did not
work.

Any advice?.

Dave
3 REPLIES 3
Paul Heffels_1
Frequent Advisor

Re: Welcoming users with friendly script

Hi Dave,

I don't know what you exactly want to do but first of all it's allowed to
change /etc/issue to your needs and second of all you could use /etc/motd also.
If you just want to display text, then you could change the files according. If
you want something more fancy then you will need to write a script and call it
somewhere during logon for instance in /etc/profile.
javier juarez_1
Occasional Advisor

Re: Welcoming users with friendly script

Hi!
Simply edit file /etc/issue put text that you want or edit /etc/motd with the
text desired, or make a file with next content, or some like this.


clear
banner HI $LOGNAME
echo "========================================================"
echo
echo "You Are entering to server:" $(hostname)
echo
echo "Please comunicate any question about this system to Dave Walley"
echo "Phone 99999999 Ext 999"
echo
echo "========================================================"
echo
echo "Press Any key to continue \c"
read


then make it executable and put the name of this file en last line of
/etc/profile

Anthony Goonetilleke_1
Regular Advisor

Re: Welcoming users with friendly script

Don't forget that even if you edited /etc/inetd.conf and appended the

telnetd -b /etc/issue

to the telnet line you still have to issue a SIGHUP signal to inetd so that it
will reread /etc/inetd.conf and hence the new message file. The best way to do
this is to do a

inetd -c

The entire line should read something like this I think..

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

On the other hand if you want a post-login message/screen try using
/etc/csh.login or /etc/profile to add customised scripts for users.

regards,
AG