Package: dictd
Severity: normal
Tags: squeeze

The dictionary server no longer accepts client connections, if run as
non-root (even from localhost).

A tail on a system trace reveals:

13478 read(21, "# Internet (IP) protocols\n#\n# Upd"..., 1024) = 1024
13478 close(21)                         = 0
13478 munmap(0xb5bec000, 4096)          = 0
13478 socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 21
13478 setsockopt(21, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
13478 bind(21, {sa_family=AF_INET, sin_port=htons(2628), 
sin_addr=inet_addr("0.0.0.0")}, 16) = -1 EADDRINUSE (Address already in use)
13478 write(2, "dictd (net_open_tcp): "..., 22) = 22
13478 write(2, "Can't bind 2628/tcp to port 2628\n"..., 33) = 33
13478 write(2, "net_open_tcp: Address already in "..., 37) = 37
13478 exit_group(1)                     = ?

I am not sure whether that is normal behaviour.

netstat -a reveals:

tcp        0      0 *:dict                  *:*                     LISTEN

Trying to tie this to a process:

lsof -i :dict

I am not sure why that produces no output. I would expect the pid of the
session being traces to appear there.

Try to connect to that socket (using telnet):

telnet neptune dict
Trying 10.0.0.8...
Connected to neptune.markhobley.yi.org.
Escape character is '^]'.
530 access denied
Connection closed by foreign host.

(Connections from localhost are not allowed either)

-- System Information:
Debian Release: 6.0
  APT prefers stable
  APT policy: (990, 'stable'), (50, 'unstable'), (1, 'experimental')
Architecture: i386 (i386)

Kernel: Linux 2.6.38-rc6-486
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/pdksh

Versions of packages dictd depends on:
ii  adduser                 3.111            add and remove users and groups
pn  dictzip                 <none>           (no description available)
ii  libc6                   2.11.2-10        Embedded GNU C Library: Shared lib
ii  lsb-base                3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip
ii  netbase                 4.42             Basic TCP/IP networking system
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

Versions of packages dictd recommends:
ii  dict [dict-client]         1.11.2+dfsg-3 dictionary client

Versions of packages dictd suggests:
pn  dict-foldoc                   <none>     (no description available)
pn  dict-gcide | dictd-dictionary <none>     (no description available)
pn  dict-jargon                   <none>     (no description available)
pn  dict-wn                       <none>     (no description available)



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to