If the only need to run as root is to bind to port 80 and/or 443
my suggestion would be to pick a different, non-privileged, port.
Since this is a dedicated special-purpose master/remote interface
rather than a general service like a regular web server it makes
sense for it to have its own port anyway, rather than hijack a
well known one. I wouldn't be able to run your master/remote
since it would collide with the webserver that I run.
Better yet, make the port configurable.
- Stephen
On Monday, December 13, 2004, at 08:57 pm, 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? Or
some other simple way to run a Java app with superuser privileges?
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.
It works fine in a shell when I prefix my application with "sudo". But
I can't ask users to do that! I have also been able to get it to work
from an AppleScript (something like 'do shell script "sudo open
MyApp"'). That will be what I will have to ship, unless there is a
better, more "transparent" solution.
Any ideas?
--
most companies ignore their ability to deliver genuine knowledge,
opting instead to crank out sterile happytalk that insults the
intelligence of markets literally too smart to buy it.
- http://www.cluetrain.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden