LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 06-13-2002, 01:04 PM   #1
KevStA
Member
 
Registered: Dec 2001
Location: Birmingham, UK
Distribution: Red Hat 7.2
Posts: 96

Rep: Reputation: 15
Unhappy Stupid telnet question


Hi guys,

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


Thanks.

Last edited by KevStA; 06-13-2002 at 01:05 PM.
 
Old 06-13-2002, 01:13 PM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
edit /etc/issue and/or /etc/issue.net

Last edited by neo77777; 06-13-2002 at 01:16 PM.
 
Old 06-13-2002, 01:30 PM   #3
KevStA
Member
 
Registered: Dec 2001
Location: Birmingham, UK
Distribution: Red Hat 7.2
Posts: 96

Original Poster
Rep: Reputation: 15
hehehe, I tried /etc/issue which didn'n't work, and then I realised your edited you post and /etc/issue.net worked.

Thanks for your help.

Edit: Grammar, *need to slow down when replying *

Last edited by KevStA; 06-13-2002 at 01:32 PM.
 
Old 06-13-2002, 01:42 PM   #4
sewer_monkey
Member
 
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
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...
 
Old 06-13-2002, 01:47 PM   #5
KevStA
Member
 
Registered: Dec 2001
Location: Birmingham, UK
Distribution: Red Hat 7.2
Posts: 96

Original Poster
Rep: Reputation: 15
Thanks for the advise sewer_monkey, i did it and seemed to work perfect...so we'll see when i shut down and power backup
 
Old 06-13-2002, 02:03 PM   #6
KevStA
Member
 
Registered: Dec 2001
Location: Birmingham, UK
Distribution: Red Hat 7.2
Posts: 96

Original Poster
Rep: Reputation: 15
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
 
Old 06-13-2002, 04:05 PM   #7
wartstew
Member
 
Registered: Apr 2002
Location: Albuquerque, NM USA
Distribution: Slackware, Ubuntu, Debian, Maemo
Posts: 464

Rep: Reputation: 30
Running telnet on the public internet these days is a security risk. You should look into using SSH (Secure Shell) instead.
 
Old 06-13-2002, 04:19 PM   #8
KevStA
Member
 
Registered: Dec 2001
Location: Birmingham, UK
Distribution: Red Hat 7.2
Posts: 96

Original Poster
Rep: Reputation: 15
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.
 
Old 06-13-2002, 05:48 PM   #9
sewer_monkey
Member
 
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
Quote:
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)
 
Old 06-13-2002, 06:31 PM   #10
KevStA
Member
 
Registered: Dec 2001
Location: Birmingham, UK
Distribution: Red Hat 7.2
Posts: 96

Original Poster
Rep: Reputation: 15
Thanks for the help sewer_monkey

Edit: i didn't think of doing man issue.net, although i did do man /etc/issue.net which showed whats in the file.

Last edited by KevStA; 06-13-2002 at 06:34 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Stupid, stupid question; I lost Klaptop. :( Surfrider Slackware 2 08-31-2005 09:12 PM
stupid question spookyct Mandriva 1 04-29-2005 01:10 PM
Stupid Dumb Stupid Question... drigz Linux - Software 3 09-23-2004 03:09 PM
Stupid Telnet Question soundphan Linux - Newbie 4 07-19-2003 10:55 AM
Hopefully not a stupid question qennster Programming 2 04-03-2002 12:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration