LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 09-03-2008, 03:46 PM   #1
JumpingFeet
LQ Newbie
 
Registered: Sep 2008
Posts: 2

Rep: Reputation: 0
Telnet in RHEL5


Hi,

Could anyone tell me:
1. How to add the "Telnet" daemon in the Service Configuration in Red Hat EL5?
2. How to restrict root logon, but at the same time I can also use the scp command?

Thanks.
 
Old 09-03-2008, 09:04 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
1. please don't do that unless you want to get hacked.
2. In sshd_config set (comment out)

#PermitRootLogin yes

ie do not allow root login.
Instead, create a non-priv user and use that via ssh/scp and then 'su -' or use sudo to gain root privs as reqd.
 
Old 09-04-2008, 08:54 AM   #3
JumpingFeet
LQ Newbie
 
Registered: Sep 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Hi Chris,

Thanks for the info.
In question 1, would it be safe if the firewall is enabled? I have another server running EL4 which has the telnet daemon in the Service Config. I don't know how the previous user set that up. Is EL5's setup different than EL4? Should the telnet daemon be set up in the initial installation? I don't remember which section that requires that setup during installation.

Thanks,
J_Feet
 
Old 09-04-2008, 08:12 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
The prob with telnet is that everything, inc username/passwd is sent in plaintext, so stealing that info is trivial.
Please use ssh if you possibly can, or email your boss and cover yourself...
Firewalls only restrict what can connect to where, it can do nothing about the protocol.
If you want to disable it, it should be under the /etc/xinetd.d dir, iirc.

(Web analogy:
telnet = http
ssh = https
)

HTH
 
Old 10-08-2008, 03:51 AM   #5
Dunhill
LQ Newbie
 
Registered: Jul 2005
Posts: 22

Rep: Reputation: 15
Probably i need to add the "Telnet" daemon in the Service Configuration in RHEL 5

Hi Chrism01,

I am doing some search on how to xmanager to log in RHEL5 and some article said I need to setting

#vi /etc/xinetd.d/telnet

# default: on
# description: The telnet server serves telnet sessions; it uses \
# unencrypted username/password pairs for authentication.
service telnet
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
disable = no
}

I do not even have such a file before I turn on telnet seems.

Please let me know how to turn it on?

Thanks.
 
Old 10-08-2008, 04:41 AM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
You would need to add the telnet-server package with up2date/yum
 
Old 10-08-2008, 04:54 AM   #7
Dunhill
LQ Newbie
 
Registered: Jul 2005
Posts: 22

Rep: Reputation: 15
only trial version..

i downloaded the dvd medium from website, just install rhel5 for own interest. So I did not register. It is said unregistered copy can not automatic update?
 
Old 10-08-2008, 09:14 PM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
In that case, get CENTOS instead. Its a free version of the full RHEL, with updates.
 
Old 10-11-2008, 01:22 AM   #9
Dunhill
LQ Newbie
 
Registered: Jul 2005
Posts: 22

Rep: Reputation: 15
Thanks Chris,

Will do. Already start thinking that way. Probably will replace it with Centos in the future 2 months time.
 
Old 12-03-2008, 12:32 AM   #10
thiyagarajanm
LQ Newbie
 
Registered: Nov 2008
Posts: 1

Rep: Reputation: 0
Need to install RHEL 5 server version

Dear friends,

I also have same problem.

Currently i have installed rhel 5 client version(telnet-server-2.6.18-8. el5xen)

But due to some technical problem now i want to install RHEL 5 server version.

From where can i get the os image (for vmware).I don't have cd media for that.

pls help

Last edited by thiyagarajanm; 12-03-2008 at 12:35 AM.
 
  


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
Unable to telnet to Linux Host inspite of installing telnet-server RPM - Need Help sinamdar Linux - Software 7 04-11-2009 07:09 AM
Can't end telnet servcie in xinetd when close remote telnet cliend forcely zeroneworld Linux - Newbie 2 12-09-2007 08:47 PM
Can't end telnet servcie in xinetd when close remote telnet cliend forcefully. zeroneworld Linux - General 1 12-06-2007 07:17 AM
RHEL5/Telnet/Java rao_marre Linux - General 1 04-16-2007 07:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 11:18 PM.

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