How Do I Run a Java App with Superuser Privileges?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com User-agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.3) Gecko/20040910 Any ideas? Bill _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
William C. McCain