Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4827289

Provide ability to bind to privleged ports as non-root user

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 5.0
    • core-libs
    • generic
    • generic

      Currently, binding to any "reserved" or "privileged" port (0-1023)
      requires starting the JVM as root, which is unacceptable in many
      circumstances. There may be workarounds available such as starting the
      JVM as root, creating a ServerSocket for the desired privileged port,
      and then changing the JVM to a non-root user while holding on to the
      previously generated ServerSocket, but this would complicate many
      startup procedures.

      Our specific use case where the above feature would be required is S1AS 8, which users will not want to run as root. In addition, competing technologies such as the Apache webserver already support this.

            msheppar Mark Sheppard
            jlueheorcl Jan Luehe (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: