Re: rquotad stole port 993 from imaps!



On 20 Nov 2006, in the Usenet newsgroup comp.os.linux.networking, in article
<1164043907.843220.152270@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>, alazarevich@xxxxxxxxx
wrote:

Anyway, last night, after a restart, the portmap gave port 993 to
rpc.rquotad. And thus when imaps tried to start, it failed:

zeus:/var/log# lsof -i :993
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
rpc.rquot 3341 root 4u IPv4 7401 TCP *:imaps (LISTEN)

PID 3341

Nov 19 21:06:22 zeus xinetd[3297]: bind failed (Address already in use (errno
= 98)). service = imaps

PID 3297 In theory, you might put a delay between the processes to
allow xinetd to grab the needed ports before portmapper hands it out.

I realize portmap assigns ports (that aren't in use?) to rpc services,
giving it some port number below 1024. But why would portmap give it
993?

Why not? Not every one is using every one of the "well known ports".

Shouldn't portmap never give out 993?

Well, I'm not running IMAPS, so why shouldn't portmap hand it out? ;-)

How do I stop portmap from giving any service port 993? Or am I missing
some understanding of how portmap works?

-rw-rw-r-- 1 gferg ldp 127205 Aug 26 2002 NFS-HOWTO

Section 6.4

In kernels 2.4.13 and later with nfs-utils 0.3.3 or later you no longer have
to worry about the floating of ports in the portmapper. Now all of the
daemons pertaining to nfs can be "pinned" to a port. Most of them nicely take
a -p option when they are started; those daemons that are started by the
kernel take some kernel arguments or module options.

There's a lot more material in that HOWTO.

Old guy

.



Relevant Pages

  • Re: How to stop squirrelmail temporarily
    ... Normally these ports are used by imapd - normal and secure ... Perdition also needs port 993 and 143. ... # kill -9 692 ... USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND ...
    (Debian-User)
  • Re: TCP/IP socket port used in IGraphBuilder::RenderFile() API
    ... applications use to find out which applications use which ... ports, and just look at the ports his application is ... it doesn't provide the process PID ... // a dot angeli at psynet dot net ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: SNMP not listening
    ... "Louis Vitiello Jr." ... running then take a look at it's PID. ... This will show what ports your SNMP is using. ...
    (microsoft.public.windows.server.general)
  • Re: WinXP Pro & Ports
    ... > I have fresh install WinXP and i'm not runing ISS or some other server or ... X = the PID you got, it will tell you whats using them ports. ... "Without knowledge you have fear. ...
    (alt.computer.security)
  • Investigating processes on open ports
    ... Investigating processes on open ports ... I do not get any output, meaning, no configuration file contains strings ... How will I find out more information about which processes (PID) is ... TURKCELL bu mesajin icerdigi bilgilerin dogrulugu veya eksiksiz oldugu ...
    (SunManagers)