Am 23.09.2012 um 19:33 schrieb Garth Hjelte <[email protected]>: > I need to make a helper app that will call the open() and read() commands on > OSX 10.8. To use those the way I want, I need to be the root user. The > purpose is to ultimately read and write to physical disks low-level, without > regards of the file format.
Well, you certainly need some helper app. GUI apps should never run as root. So your helper app need to be set to run as root. You can do that with installer (E.g. Package Maker). Or install it manually using AuthorizationMBS. > If it's to the app file itself, do I just do a chmod 777 myapp.app to it, > either the user does it himself or I run a script from PackageMaker (yes, I > use Packagemaker). chomd 777 does not need. you may need to set setuid and make the app non writable by everyone. > If it's in AuthorizeMBS, again, is that for the running time of the app or is > it to the function scope itself? You bless app to run as root. > Also, Christian, I asked this on the REAL list, but extending the > conversation here, can't I just use IPC? Why the new XPC? Would IPC work, why > the mention of XPC, and does REAL or MBS support it? You can use IPC if you like. XPC is the way Apple recommended by Apple. You can read details on Apple website. Greetings Christian -- Read our blog about news on our plugins: http://www.mbsplugins.de/ _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
