From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96204763407343.tru64-unix-managers.marc@archive.invalid> From: Charles Vachon Date: Mon, 26 Jun 2000 19:25:16 +0000 To: tru64-unix-managers Subject: how does portmap choose IP ports X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96204763407343 Hello again Tru-managers, After rebooting a DU40.D host, I ended up having portmap and inetd clashing on the usage of port TCP 901, for no reason that I can find. I used to run SWAT, Samba's graphical administration interface on port TCP:901. SWAT is defined in /etc/services as: swat 901/tcp and it is fired up by inetd using (in /etc/inetd.conf): swat stream tcp nowait root /loc/app/samba/bin/swat swat Now, messages such as "inetd[450]: swat/tcp: bind: Address already in use" are cropping up in daemon.log, and doing a rpcinfo on this host shows entries like these: 100005 1 tcp 901 mountd 100005 3 tcp 901 mountd mountd is indeed using the TCP:901 port, so inetd complains about it! A quick survey of our Unix hosts (all running some version of DU/TU) show that the port used by mountd varies between hosts: 901, 900, 899, 933, 878 have all been observed for mountd. My question is: how does one control the availibiliy of ports for use by the portmap daemon? The simple and obvious solution to my problem is to run SWAT at some untouched port, say 9901 instead of 901, but I remain curious as to how does portmap works. Thanks in advance. -- =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Charles Vachon tel: (418) 627-6355 x2760 email: cvachon2@mrn.gouv.qc.ca Administrateur de syst=E8me FRCQ/Minist=E8re des Ressources Naturelles du Qu=E9bec =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D