Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 06-01-2002, 03:57 PM   #1
Registered: Dec 2001
Location: Birmingham, UK
Distribution: Red Hat 7.2
Posts: 96

Rep: Reputation: 15
getpeername: Socket operation on non-socket

Hello all,

I'm having a problem with telnet, before any says anything about it (that its insecure etc. i know ), i'm behind a computer setup as as firewall for my network, so i want to mess about with telnet on my network

Anyway, went to /etc/xinetd.d and edited the telnet file by just changing disable = yes to disable = no

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
and when i goto console, and type telnetd i get:

in.telnetd: getpeername: Socket operation on non-socket

Is there anything else that i have to do, to get the telnet daemon to start?

Old 06-21-2003, 11:44 AM   #2
LQ Newbie
Registered: Jun 2003
Location: Columbus Ohio
Distribution: Mandrake
Posts: 1

Rep: Reputation: 0
I'm having the same problem on my Mandrake 9.0 system. Were you able to solve this problem?
Old 03-11-2004, 11:22 PM   #3
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 438

Rep: Reputation: 30
After you made these changes did you restart the xinetd service?

Also you might want to check that your firewall allows incoming telnet connections to port 23.
Old 04-10-2006, 02:05 AM   #4
LQ Newbie
Registered: Apr 2006
Posts: 5

Rep: Reputation: 0
I have the same issue with cygwin
n.telnetd: getpeername: Socket operation on non-socket
Thanks in advance
Old 04-25-2006, 10:13 AM   #5
LQ Newbie
Registered: Apr 2006
Posts: 1

Rep: Reputation: 0
I had the same problem and I got the same error messages that you get.

I use FC4

After you check the file /etc/xinetd.d/telnet (there is a lot of explanation about this file over the net) CHECK the FIREWALL SETTINGS!

I use KDE - And it's in 'start' menu under 'security level settings' (or sth.) - enable there the telnet access.

Old 04-26-2006, 02:11 AM   #6
Registered: Jun 2005
Posts: 542

Rep: Reputation: 34
The problem may be that you are all trying to start in.telnetd from the console. But it must be started by inetd/xinetd ! Inetd receives a socket and then does the following:
dup2(sock, STDIN_FILENO);
dup2(sock, STDOUT_FILENO);
dup2(sock, STDERR_FILENO);
so the in.* programs may communicate using the standard I/O calls or read/write. When you try it from the command line, it tries to get the client address using getpeername(STDIN_FILENO, ...) but it's connected to a pseudo-tty. Try better with "kill -HUP `pidof xinetd`"
Old 08-25-2020, 12:40 PM   #7
LQ Newbie
Registered: Feb 2020
Posts: 2

Rep: Reputation: Disabled
Give the reason

If you are actually trying to help someone, saying things like "only do it this way" doesn't help. In this case the reason you can't start telnetd manually is because the first thing it's going to try to do is capture the IP address of the station connecting to it - but there is no station connecting to it if you are starting it manually.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot read data at server socket, though client socket sends it jacques83 Linux - Networking 0 11-15-2005 01:58 PM
AMD socket A, socket 754 darkangel29 Linux - Hardware 1 10-11-2005 09:56 AM
Single Socket Vs Multiple Socket Kumar Programming 1 10-05-2005 10:02 AM
Unable to connect to UNIX socket /tmp/.esd/socket error while using grip dr_zayus69 Linux - Software 4 08-23-2005 07:28 PM
connect: socket operation on non-socket bit7 Linux - Networking 0 02-18-2003 05:08 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:30 PM.

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