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.
Your /etc/xinetd.d/krb5-telnet should look like this:
Code:
# default: off
# description: The kerberized telnet server accepts normal telnet sessions, \
# but can also use Kerberos 5 authentication.
service telnet
{
disable = yes
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/kerberos/sbin/telnetd
log_on_failure += USERID
}
There may be an example telnet entry in /etc/xinetd.conf that's commented out, if that file exists. Here is the telnet line from my Slackware install (Slackware uses ordinary inetd, but I think they're fairly similar)
If you're lucky, that file will exist and a similar line will be there. Just open the file in a text editor and remove the hash '#' from the beginning of the line:
[CODE]
If not, try adding that line to the file in /etc/xinetd.d/ you already created?
EDIT: Whoops, bathory beat me to it and seems to have a much better idea of what's going on. Listen to him :-)
The OS is RHES 4
I have looked at krb5-telnet. The file was identical to yours.
Restarted xinetd and ran chkconfig krb5-telnet on..same problem. However on inspection of krb5-telnet it sets back the default = no from the yes set.
Running "chkconfig krb5-telnet on" should change the disable = yes to disable = no.
The line that contains "default" is just a comment to remind you that by default telnet is off.
What is the output of:
#netstat -ta|grep telnet gives no output
#service telnet status gives telnet:unrecognised service
graphical output in services shows telnet running as descibed linked to xinetd.
I did previously try removing telnet RPM and reinstalling...same problems
/var/log/messages:
Mar 27 11:38:39 mail xinetd[4472]: xinetd Version 2.3.13 started with libwrap loadavg options compiled in.
Mar 27 11:38:39 mail xinetd[4472]: Started working: 0 available services
Mar 27 11:38:58 mail xinetd[4472]: Starting reconfiguration
Mar 27 11:38:58 mail xinetd: xinetd -HUP succeeded
Mar 27 11:38:58 mail xinetd[4472]: incomplete entry [file=/etc/xinetd.d/krb5-telnet] [line=12]
Mar 27 11:38:58 mail xinetd[4472]: missing } in last service entry [file=/etc/xinetd.d/krb5-telnet] [line=12]
Mar 27 11:38:58 mail xinetd[4472]: missing service keyword [file=/etc/xinetd.d/telnetd] [line=2]
Mar 27 11:38:58 mail xinetd[4472]: missing } in last service entry [file=/etc/xinetd.d/telnetd] [line=2]
Mar 27 11:38:58 mail xinetd[4472]: Swapping defaults
Mar 27 11:38:58 mail xinetd[4472]: Reconfigured: new=0 old=0 dropped=0 (services)
You should look better at /etc/xinetd.d/krb5-telnet for errors. Perhaps you miss the last "}"
You can copy/paste the one I've posted (it's from a RH AS3 btw) to see if it works.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.