• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How Do I Run a Java App with Superuser Privileges?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How Do I Run a Java App with Superuser Privileges?


  • Subject: Re: How Do I Run a Java App with Superuser Privileges?
  • From: "William C. McCain" <email@hidden>
  • Date: Tue, 14 Dec 2004 14:30:02 -0800

I was aware it was the well-known port number (80) that requires the superuser privilege, not the protocol. And I know you can expose HTTP on any port, and how to form the URL. Just didn't express myself clearly, I guess.

I realize that I will probably need to make the port number configurable to a number in the private or reserved ranges. Just looking for a "cheap way out" for now ...

Bill

Andrew Farmer wrote:
On 13 Dec 2004, at 21:00, William C. McCain wrote:

Is there a property in Info.plist that I can set to give my Java application, packaged as a .app bundle, the superuser privilege?


No.

Or some other simple way to run a Java app with superuser privileges?


No.

My application exposes a small, low-function, secure HTTP server (this is not the main function of my application, but it is needed to support a master/remote interface between machines on a local area network in a user's home). This requires superuser privileges.


No, it doesn't. Use a nonprivileged port (above 1024). An HTTP server can run on any port - 80 is just the default. An HTTP server running on port 8080 would be accessed at
http://localhost:8080/
for example.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >How Do I Run a Java App with Superuser Privileges? (From: "William C. McCain" <email@hidden>)
 >Re: How Do I Run a Java App with Superuser Privileges? (From: Andrew Farmer <email@hidden>)

  • Prev by Date: Re: toll free bridging
  • Next by Date: Re: one document at a time
  • Previous by thread: Re: How Do I Run a Java App with Superuser Privileges?
  • Next by thread: Desperate for bindings help! Can ya spare a few minutes?
  • Index(es):
    • Date
    • Thread