LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-20-2010, 10:32 PM   #1
Hi_This_is_Dev
Member
 
Registered: May 2009
Location: India
Distribution: On my PC I use RHEL, at office AIX, Solaris, HP-UX, RHEL.
Posts: 254

Rep: Reputation: 18
start and stop telnet service on Linux


I googled it and found this information:

To enable the telnet service, login to the server as the root user account
and run the following commands:


Code:
# chkconfig telnet on
# service xinetd reload
but the very first command did not work.

So, how do we...

[1] start and stop telnet service on UNIX / Linux?

[2] specify configurations / settings for the telnet service to accept or deny connections

and so on...?
 
Old 09-20-2010, 10:46 PM   #2
basheer
Member
 
Registered: Mar 2009
Location: Bangalore, India
Distribution: slackware 13.1, Centos 5.5, Ubuntu 10.10
Posts: 173

Rep: Reputation: 29
what messages is it giving, can you post the messages.
Which distribution are you using?
Most probably chkconfig is not installed.

Post the output of both the commands here.
 
Old 09-21-2010, 12:29 AM   #3
leejohnli
Member
 
Registered: Sep 2010
Posts: 58

Rep: Reputation: 2
Why don't you just block the port thru iptables or firewall built-in on your distro in order to deny telnet connection
 
Old 09-21-2010, 12:33 AM   #4
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,221

Rep: Reputation: 131Reputation: 131
Why you try to use telnet instead of ssh? telnet not secure than ssh
 
Old 09-21-2010, 01:34 AM   #5
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,627

Rep: Reputation: Disabled
Do you know for sure that telnet has been installed on your system? If not then install it. Also look for the telnet file inside xinet.d and see if it has been disabled. By default it is. You need to enable the service. But for security reasons, use ssh. Telnet is highly insecure. Do you have any specific reason for using telnet?
 
Old 09-21-2010, 11:33 AM   #6
Hi_This_is_Dev
Member
 
Registered: May 2009
Location: India
Distribution: On my PC I use RHEL, at office AIX, Solaris, HP-UX, RHEL.
Posts: 254

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by linuxlover.chaitanya View Post
Do you know for sure that telnet has been installed on your system? If not then install it.
Really not sure. But this command works:

Code:
-bash-2.05b# service xinetd status
xinetd (pid 1332) is running...
And this file does exits:
Code:
-bash-2.05b# cat /etc/xinetd.d//telnet
# default: on
# description: The telnet server serves telnet sessions; it uses \
#       unencrypted username/password pairs for authentication.
service telnet
{
        disable = no
        flags           = REUSE
        socket_type     = stream
        wait            = no
        user            = root
        server          = /usr/sbin/in.telnetd
        log_on_failure  += USERID
}
-bash-2.05b#


Quote:
Do you have any specific reason for using telnet?
Nope! Not at all! Some interviewers asked me that question yesterday. And I was.... then said... maybe service telnetd stop would do the work... he repeated... "the service name is telnetd right...?"

So, you know now that I am testing it on my Linux box and learning from my experience I had at the interview.
 
Old 09-22-2010, 12:53 AM   #7
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,627

Rep: Reputation: Disabled
You need to turn on the xinetd service for telnet. Telnetd is the daemon that you can specify to allow or deny connections using tcpwrappers.
 
  


Reply

Tags
configure, service, start, stop, telnet


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to start the telnet service prasanth_p_bhat Linux - Software 3 03-12-2010 02:44 AM
start/stop service on the fly zchoyt Linux - Software 3 04-14-2005 03:30 AM
remotely start/stop service on WinNT PC from Linux cuzality Linux - Software 0 09-01-2004 01:48 PM
Is it possible to start stop and restart a linux service from a webpage? psychodreams Linux - Newbie 3 04-27-2004 01:24 PM
start telnet service ust Linux - General 10 08-28-2003 03:33 AM


All times are GMT -5. The time now is 05:43 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration