Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I got a fairly stupid telnet question, I've got a spair machine on my network, which is setup with telnet for a friend so that he can mess about with it for a bit...e.g. some linux commands etc. Anyway, i setup my router to forward port 23 traffic into my network. Theres only one thing that i would like to change though.
When i login, i see
Quote:
Red Hat Linux release 7.2 (Enigma)
Kernel 2.4.7-10 on an i686
login:
How do i change this?
There is no specific reason why i want to change this, i just feel like it
Be careful, though, I've seen RedHat 7.x overwrite both of these files on startup (I think the script responsible for this is /etc/init.d/network, if I am not mistaken)... This behavour might have been removed from 7.2 and 7.3, though...
Yes, i am fully aware of that, like i said. Its being port forwarded to a machine, that i do not use thus not bothering me. I researched into possible attacks etc. This is why the machine is only being turned on, when my friend asks.
Originally posted by KevStA In /etc/issue.net i put
welcome to my telnet server.
etc
How can i show the ip of the person trying to connect, e.g. if i connect from one of my nodes on my network. i want it to say:
welcome to my telnet server <IP of the node that is trying to connect>
etc.
How Would i do this?
Thank you for your help and patience
Hmmmm... I think you're just stuck with the possibilities listed in the issue.net man page. For some reason http://man.linuxquestions.org/ lacks that particular man page, but here it is in all it's glory:
Code:
ISSUE.NET(5) System File Formats Manual ISSUE.NET(5)
NAME
issue.net - identification file for telnet sessions
DESCRIPTION
The file /etc/issue.net is a text file which contains a message or system
identification to be printed before the login prompt of a telnet session.
It may contain various `%-char' (or, alternatively, '\-char') sequences.
The following sequences are supported by telnetd:
%l - show the current tty
%h, %n
- show the system node name (FQDN)
%D, %o
- show the name of the NIS domain
%d, %t
- show the current time and date
%s - show the name of the operating system
%m - show the machine (hardware) type
%r - show the operating system release
%v - show the operating system version
%% - display a single '%' character
FILES
/etc/issue.net
SEE ALSO
telnetd(8)
Linux NetKit (0.17) May 22, 1994 Linux NetKit (0.17)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.