fail to telnet localhost 106


 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu fail to telnet localhost 106
# 22  
Old 12-16-2007
This is your inetd.conf line

[CODE]poppassd stream tcp nowait root /usr/sbin/tcpd /usr/sbin/poppassd[/QUOTE]

then this is what inetd is complaining about...

Quote:
Originally Posted by satimis
Code:
Dec 17 09:50:27 mail inetd[5457]: <off>/stream: unknown service
Dec 17 09:52:54 mail inetd[5515]: execv /usr/sbin/tcpd: No such file or directory
Dec 17 09:54:50 mail inetd[5535]: execv /usr/sbin/poppassd: No such file or directory
Dec 17 09:55:41 mail inetd[5537]: execv /usr/sbin/poppassd: No such file or directory

So "inetd" can't execute what it's been told to run, I was asking if you can run them from the command line.

Do you have a "/usr/sbin/poppassd" or "/usr/sbin/tcpd"?

That "<off>/stream" looks very wrong.
# 23  
Old 12-16-2007
Quote:
Originally Posted by porter
This is your inetd.conf line

Code:
poppassd stream tcp nowait root /usr/sbin/tcpd /usr/sbin/poppassd

then this is what inetd is complaining about...



So "inetd" can't execute what it's been told to run, I was asking if you can run them from the command line.

Do you have a "/usr/sbin/poppassd" or "/usr/sbin/tcpd"?

That "<off>/stream" looks very wrong.
Re-performed following steps to further confirm;


$ cat /etc/inetd.conf
Code:
poppassd stream tcp nowait root /usr/sbin/poppassd

$ telnet localhost 106
Code:
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
Connection closed by foreign host.

$ tail /var/log/syslog
Code:
Dec 17 10:11:16 mail postfix/anvil[5553]: statistics: max connection rate 1/60s 
for (smtp:125.27.165.208) at Dec 17 10:07:54
Dec 17 10:11:16 mail postfix/anvil[5553]: statistics: max connection count 1 for
 (smtp:125.27.165.208) at Dec 17 10:07:54
Dec 17 10:11:16 mail postfix/anvil[5553]: statistics: max cache size 1 at Dec 17
 10:07:54
Dec 17 10:12:07 mail inetd[5589]: execv /usr/sbin/poppassd: No such file or dire
ctory
Dec 17 10:17:01 mail /USR/SBIN/CRON[5597]: (root) CMD (   cd / && run-parts --re
port /etc/cron.hourly)
Dec 17 10:33:17 mail -- MARK --
Dec 17 10:33:28 mail named[4527]: listening on IPv4 interface vmnet8, 192.168.21
3.1#53
Dec 17 10:33:28 mail named[4527]: listening on IPv4 interface vmnet1, 172.16.77.
1#53
Dec 17 10:39:01 mail /USR/SBIN/CRON[5605]: (root) CMD (  [ -d /var/lib/php5 ] &&
 find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs
 -r -0 rm)
Dec 17 10:47:29 mail inetd[5633]: execv /usr/sbin/poppassd: No such file or dire
ctory


$ cat /etc/inetd.conf
Code:
#<off># ftp     stream  tcp     nowait  root    /usr/sbin/tcpd /usr/sbin/proftpd
poppassd stream tcp nowait root /usr/sbin/tcpd /usr/sbin/poppassd


$ sudo /etc/init.d/inetd restart
Code:
 * Restarting internet superserver...                                                                    [ OK ]


$ telnet localhost 106
Code:
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
Connection closed by foreign host.


$ tail /var/log/syslog
Code:
Dec 17 10:11:16 mail postfix/anvil[5553]: statistics: max connection count 1 for (smtp:125.27.165.208) at Dec 17 10:07:54
Dec 17 10:11:16 mail postfix/anvil[5553]: statistics: max cache size 1 at Dec 17 10:07:54
Dec 17 10:12:07 mail inetd[5589]: execv /usr/sbin/poppassd: No such file or directory
Dec 17 10:17:01 mail /USR/SBIN/CRON[5597]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Dec 17 10:33:17 mail -- MARK --
Dec 17 10:33:28 mail named[4527]: listening on IPv4 interface vmnet8, 192.168.213.1#53
Dec 17 10:33:28 mail named[4527]: listening on IPv4 interface vmnet1, 172.16.77.1#53
Dec 17 10:39:01 mail /USR/SBIN/CRON[5605]: (root) CMD (  [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -r -0 rm)
Dec 17 10:47:29 mail inetd[5633]: execv /usr/sbin/poppassd: No such file or directory
Dec 17 10:51:03 mail inetd[5656]: execv /usr/sbin/tcpd: No such file or directory


$ locate poppassd
Code:
/etc/pam.d/poppassd
/etc/xinetd.d/poppassd
/usr/sbin/poppassd
/usr/share/doc/poppassd
/usr/share/doc/poppassd/changelog.Debian.gz
/usr/share/doc/poppassd/copyright
/usr/share/doc/poppassd/README.gz
/usr/share/man/man8/poppassd.8.gz
/var/cache/apt/archives/poppassd_1.8.5-3.1ubuntu1_amd64.deb
/var/lib/dpkg/info/poppassd.conffiles
/var/lib/dpkg/info/poppassd.list
/var/lib/dpkg/info/poppassd.md5sums
/var/lib/dpkg/info/poppassd.postinst
/var/lib/dpkg/info/poppassd.postrm


$ locate tcpd
Code:
/usr/sbin/couriertcpd
/usr/sbin/tcpdump
/usr/share/doc/tcpdump
/usr/share/doc/tcpdump/changelog.Debian.gz
/usr/share/doc/tcpdump/changelog.gz
/usr/share/doc/tcpdump/copyright
/usr/share/doc/tcpdump/examples
/usr/share/doc/tcpdump/examples/atime.awk
/usr/share/doc/tcpdump/examples/packetdat.awk
/usr/share/doc/tcpdump/examples/send-ack.awk
/usr/share/doc/tcpdump/examples/stime.awk
/usr/share/doc/tcpdump/README.gz
/usr/share/man/man1/couriertcpd.1.gz
/usr/share/man/man8/tcpdump.8.gz
/usr/share/webmin/caldera/tcpd
/usr/share/webmin/caldera/tcpd/images
/var/cache/apt/archives/tcpdump_3.9.5-2ubuntu1_amd64.deb
/var/lib/dpkg/info/tcpdump.list
/var/lib/dpkg/info/tcpdump.md5sums


$ ls -l /usr/sbin/poppassd
Code:
ls: /usr/sbin/poppassd: No such file or directory


$ ls -al /usr/sbin | grep poppassd
No printout


The file /usr/sbin/poppassd seems missing.



Edit:

Further discovery;

$ apt-cache policy poppassd
Code:
poppassd:
  Installed: (none)
  Candidate: 1.8.5-3.1ubuntu1
  Version table:
     1.8.5-3.1ubuntu1 0
        500 http://us.archive.ubuntu.com feisty/universe Packages
        100 /var/lib/dpkg/status

$ apt-cache policy openbsd-inetd
Code:
openbsd-inetd:
  Installed: (none)
  Candidate: 0.20050402-3
  Version table:
     0.20050402-3 0
        500 http://us.archive.ubuntu.com feisty/main Packages

They are not installed.

I have no idea when poppassd was removed. Previously I manually installed it on repo.

Shall I reinstall these packages? How about those old files? Any action to be taken?

TIA


satimis

Last edited by satimis; 12-17-2007 at 05:16 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Telnet failed to localhost.

Hi, I am trying telnet to localhost 514. But the connection is refusing. Port does not appear in netstat. IP table service is also off. (5 Replies)
Discussion started by: Nishit
5 Replies

2. Shell Programming and Scripting

If Telnet fail abort other command..??

Hi Team, I my script i telent my node ip and after loging i run some commands...But some time login fail so i want to stop script at that time.. CONFIG_CHNG.sh printf 'Please Input Node ID : ' read node node="$node" #exec > node_log_$node.log 2>&1 #set -x >... (2 Replies)
Discussion started by: Ganesh Mankar
2 Replies

3. Linux

Telnet fail

Hi, I try to telnet to server: # telnet xx.xxx.1.72 1521 Trying xx.xxx.1.72... telnet: connect to address xx.xxx.1.72: Connection refused telnet: Unable to connect to remote host: Connection refused iptables is off: # service iptables status Firewall is stopped. # And I have edit... (4 Replies)
Discussion started by: mehrdad68
4 Replies
Login or Register to Ask a Question