<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Open a port in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314198#M876670</link>
    <description>Hi Simone,&lt;BR /&gt;&lt;BR /&gt;Check if port 80 is disabled/commented out in the /etc/services file.&lt;BR /&gt;&lt;BR /&gt;# grep 80 /etc/services &lt;BR /&gt;http          80/tcp  www            # World Wide Web HTTP&lt;BR /&gt;http          80/udp  www            # World Wide Web HTTP&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
    <pubDate>Thu, 24 Jun 2004 06:38:35 GMT</pubDate>
    <dc:creator>Robert-Jan Goossens</dc:creator>
    <dc:date>2004-06-24T06:38:35Z</dc:date>
    <item>
      <title>Open a port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314197#M876669</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;How to bind a process to a port less than 1025 with a NON root account?&lt;BR /&gt;&lt;BR /&gt;I need it for a SAP portal: default web port is 50000 and I need it on port 80. Tha java user (UID 103) that should start SAP web server (not Apache, iPlanet....) shows:&lt;BR /&gt;&lt;BR /&gt;     Unable to create server socket.&lt;BR /&gt;     Perhaps another process is using port 80.&lt;BR /&gt;&lt;BR /&gt;Nobody is using port 80: the problem is related to the user privilege, but I do not want to run it as root!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Simone</description>
      <pubDate>Thu, 24 Jun 2004 06:28:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314197#M876669</guid>
      <dc:creator>Simone Benzi_1</dc:creator>
      <dc:date>2004-06-24T06:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Open a port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314198#M876670</link>
      <description>Hi Simone,&lt;BR /&gt;&lt;BR /&gt;Check if port 80 is disabled/commented out in the /etc/services file.&lt;BR /&gt;&lt;BR /&gt;# grep 80 /etc/services &lt;BR /&gt;http          80/tcp  www            # World Wide Web HTTP&lt;BR /&gt;http          80/udp  www            # World Wide Web HTTP&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Thu, 24 Jun 2004 06:38:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314198#M876670</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2004-06-24T06:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Open a port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314199#M876671</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;services file is still the default one with:&lt;BR /&gt;&lt;BR /&gt;http          80/tcp  www            # World Wide Web HTTP&lt;BR /&gt;http          80/udp  www            # World Wide Web HTTP&lt;BR /&gt;&lt;BR /&gt;Simone</description>
      <pubDate>Thu, 24 Jun 2004 06:43:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314199#M876671</guid>
      <dc:creator>Simone Benzi_1</dc:creator>
      <dc:date>2004-06-24T06:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Open a port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314200#M876672</link>
      <description>well try to commend them out &lt;BR /&gt;&lt;BR /&gt;#http 80/tcp www # World Wide Web HTTP&lt;BR /&gt;#http 80/udp www # World Wide Web HTTP&lt;BR /&gt;&lt;BR /&gt;use lsof -i | grep 80 &lt;BR /&gt;to check if someone is using these ports.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Thu, 24 Jun 2004 06:48:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314200#M876672</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2004-06-24T06:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Open a port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314201#M876673</link>
      <description>hai,&lt;BR /&gt;&lt;BR /&gt; We can use the bindresvport(3N) call to bind on the privillaged port. Check the port 80 is in usage with netstat call.&lt;BR /&gt;&lt;BR /&gt; Check the successful of bind with it's return type. &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Muthukumar.</description>
      <pubDate>Thu, 24 Jun 2004 06:57:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314201#M876673</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-06-24T06:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Open a port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314202#M876674</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Nobody is using port 80: the problem is that I can not bind such port to a process with a non-root user.&lt;BR /&gt;Muthukumar: how can I use bindresvport?&lt;BR /&gt;&lt;BR /&gt;Simone</description>
      <pubDate>Thu, 24 Jun 2004 07:05:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314202#M876674</guid>
      <dc:creator>Simone Benzi_1</dc:creator>
      <dc:date>2004-06-24T07:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Open a port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314203#M876675</link>
      <description>hai,&lt;BR /&gt;&lt;BR /&gt; Create a socket with the socket call. Use the struct sockaddr_in from netinet/in.h to know it's format.&lt;BR /&gt;&lt;BR /&gt; bindresvport will work as like in the &lt;A href="http://www.linuxtv.org/cgi-bin/cvsweb.cgi/dietlibc/librpc/bindresvport.c?rev=1.4" target="_blank"&gt;http://www.linuxtv.org/cgi-bin/cvsweb.cgi/dietlibc/librpc/bindresvport.c?rev=1.4&lt;/A&gt; example. &lt;BR /&gt;&lt;BR /&gt; It will try to bind in the reserved ports. Assign the port to 80 and check for it.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Muthukumar.</description>
      <pubDate>Thu, 24 Jun 2004 22:48:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314203#M876675</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-06-24T22:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Open a port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314204#M876676</link>
      <description>The entire point of port numbers being "priviledged" is that they cannot be allocated by non-root users.  If there were an (easy) way for a non-root user to bind to a priviledged port, there wouldn't be much point to the port being priviledged.&lt;BR /&gt;&lt;BR /&gt;Now, what is typically done is to launch an application as root, allocate the socket, bind it to the privildeged port, and then change from root to non-root.&lt;BR /&gt;&lt;BR /&gt;If the application cannot start as root, it will have to use a non-priviledged port.  Period.&lt;BR /&gt;&lt;BR /&gt;Now, having said that, the system admistrator (aka root) can use ndd (11.X) to change the range of ports that are priviledged - iirc the setting is called tcp_smallest_nonpriv_port or somesuch.  But only root can do that.&lt;BR /&gt;&lt;BR /&gt;Just why do you "need" it to be port 80?  Do you have software that is broken and thinks that http is only ever to port 80 or something?</description>
      <pubDate>Thu, 24 Jun 2004 23:00:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314204#M876676</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2004-06-24T23:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Open a port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314205#M876677</link>
      <description>Thats right, You can change HP-UX so that the smallest non priveleged port is 80, thus you won't need to be root to bind to it.&lt;BR /&gt;&lt;BR /&gt;use ndd:  ndd -set /dev/tcp tcp_smallest_nonpriv_port 80&lt;BR /&gt;&lt;BR /&gt;Don't forget to edit your /etc/rc.config.d/nddconf&lt;BR /&gt;&lt;BR /&gt;TRANSPORT_NAME[0]=tcp&lt;BR /&gt;NDD_NAME[0]=tcp_smallest_nonpriv_port&lt;BR /&gt;NDD_VALUE[0]=80&lt;BR /&gt;#(Don't forget to increment the index number, in the example above it is 0, but make it one higher than the highest index number in your nddconf file.&lt;BR /&gt;&lt;BR /&gt;Note however that doing this will reduce security since your priveleged ports are no longer priveleged.  However this really isn't a big deal since this isn't much of a security measure anyway.  &lt;BR /&gt;&lt;BR /&gt;It would be nice if HP-UX could allow a way for Admins to make a single exception to the priveleged port dilema.  Wouldn't it be nice if you could have a list of ports in the priveleged range that were NOT priveleged, such as 80.  That way, you wouldn't have to go through the process of switching users once you had the port opened.  How about a feature request???&lt;BR /&gt;&lt;BR /&gt;- Andrew Gray&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Jun 2004 00:43:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314205#M876677</guid>
      <dc:creator>support_5</dc:creator>
      <dc:date>2004-06-25T00:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Open a port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314206#M876678</link>
      <description>Don't forget to assign points.  Ta&lt;BR /&gt;- Andrew Gray</description>
      <pubDate>Fri, 25 Jun 2004 00:44:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314206#M876678</guid>
      <dc:creator>support_5</dc:creator>
      <dc:date>2004-06-25T00:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Open a port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314207#M876679</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Thanks to all answers (points will surely follow), but ndd fails with this error:&lt;BR /&gt;&lt;BR /&gt;# ndd -set /dev/tcp tcp_smallest_nonpriv_port 80&lt;BR /&gt;operation failed, Invalid argument&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;(Note that kernel parameter STRMSGSZ is 65535: should be enough).&lt;BR /&gt;&lt;BR /&gt;Is it possible to set this tcp parameter?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Simone</description>
      <pubDate>Fri, 25 Jun 2004 05:32:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314207#M876679</guid>
      <dc:creator>Simone Benzi_1</dc:creator>
      <dc:date>2004-06-25T05:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Open a port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314208#M876680</link>
      <description>Ciao Simone,&lt;BR /&gt;&lt;BR /&gt;have you already seen this doc in ITRC knoledge base?&lt;BR /&gt;&lt;BR /&gt;KBRC00012155 - ndd -get &amp;amp; -set error message: invalid argument operation failed &lt;BR /&gt;&lt;BR /&gt;It seems that you should have STRMSGSZ equal to 0 in order to change that parameter.&lt;BR /&gt;&lt;BR /&gt;HTH.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Ettore</description>
      <pubDate>Fri, 25 Jun 2004 05:40:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314208#M876680</guid>
      <dc:creator>Fabio Ettore</dc:creator>
      <dc:date>2004-06-25T05:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Open a port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314209#M876681</link>
      <description>hai,&lt;BR /&gt;&lt;BR /&gt; Operation of &lt;BR /&gt;# ndd -set /dev/tcp tcp_smallest_nonpriv_port 80 will be like &lt;BR /&gt;operation failed, Invalid argument..,&lt;BR /&gt;&lt;BR /&gt; because it is UNSUPPORTED ndd tunable parameters on HP-UX. &lt;BR /&gt;&lt;BR /&gt; Execute the command as like&lt;BR /&gt;&lt;BR /&gt; # ndd -h unsupported | grep priv&lt;BR /&gt;  &lt;BR /&gt; It can not be tuned with that command. The way you can use the bindresvport() command.&lt;BR /&gt;&lt;BR /&gt; === man page ===&lt;BR /&gt;The bindresvport() function binds a socket descriptor to a privileged&lt;BR /&gt;      IP port; that is, a port number in the range 0 to 1023&lt;BR /&gt;&lt;BR /&gt;================&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Muthukumar. &lt;BR /&gt;</description>
      <pubDate>Fri, 25 Jun 2004 05:55:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314209#M876681</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-06-25T05:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Open a port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314210#M876682</link>
      <description>Ciao,&lt;BR /&gt;&lt;BR /&gt;Even with STRMSGSZ=0 the problem is the same:&lt;BR /&gt;&lt;BR /&gt;# kmtune |grep STRMSGSZ&lt;BR /&gt;STRMSGSZ                    0  -  0&lt;BR /&gt;#ndd -set /dev/tcp tcp_smallest_nonpriv_port 80&lt;BR /&gt;operation failed, Invalid argument&lt;BR /&gt;&lt;BR /&gt;Are you sure this is a configurable tcp parameter?&lt;BR /&gt;&lt;BR /&gt;Simone</description>
      <pubDate>Fri, 25 Jun 2004 06:03:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314210#M876682</guid>
      <dc:creator>Simone Benzi_1</dc:creator>
      <dc:date>2004-06-25T06:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Open a port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314211#M876683</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Yes, you're right, it doesn't work does it. I don't know why, I was only going by the documentation from HP (see attached). I'm out of ideas. Anyone else?&lt;BR /&gt;&lt;BR /&gt;- Andrew Gray&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 05:37:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314211#M876683</guid>
      <dc:creator>support_5</dc:creator>
      <dc:date>2025-08-05T05:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Open a port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314212#M876684</link>
      <description>You might try to see what happens if you try to make it larger than 1024/1025.  It may also have interaction with the other "port" settings.</description>
      <pubDate>Sun, 27 Jun 2004 21:50:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314212#M876684</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2004-06-27T21:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Open a port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314213#M876685</link>
      <description>Yep, I tried setting it higher than 1024 and it would work, but anything less would fail.  Don't know what that means.  But there you have it.&lt;BR /&gt;&lt;BR /&gt;- Andrew Gray&lt;BR /&gt;</description>
      <pubDate>Sun, 27 Jun 2004 22:42:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314213#M876685</guid>
      <dc:creator>support_5</dc:creator>
      <dc:date>2004-06-27T22:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Open a port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314214#M876686</link>
      <description>On the surface it suggests that the folks doing the stack decided that &amp;lt; 1024 being root was sacrosanct.&lt;BR /&gt;&lt;BR /&gt;BTW, what is the reason you cannot have this thing listening on port 50000 like its default again?</description>
      <pubDate>Mon, 28 Jun 2004 09:32:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/open-a-port/m-p/3314214#M876686</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2004-06-28T09:32:23Z</dc:date>
    </item>
  </channel>
</rss>

