Is it possible to run a Mac OS X GUI app as root when you are logged in as a different user? [Yes, I recognize that this is usually a bad idea.]
When I try
sudo open /Path/To/My.app
it runs as the logged-in user, so far as I can tell.
[I'm sure you are wondering why I want to do this. Sigh. I am running NetRestore within a NetBoot image that was not created by NetRestore Helper, as I need to run some other GUI software after I do the restore. It logs into a standard administrator account. Normally when you run NetRestore, it asks you to authenticate before restoring. It appears that it determines that it is NetBooted and assumes that it is running under the root account, and refuses to ask for authentication, and thus has insufficient permissions to perform a restore.]
[Most likely I will have to tweak my netbooting setup so it automatically logs into the root account, but if I could just run the one application as root, it would take much less time to set up.]