FROM : Nick Zitzmann
DATE : Thu Nov 07 19:57:00 2002
On Thursday, November 7, 2002, at 03:25 PM, <email_removed> wrote:
> I have a GUI app that needs to run as a system user every time it is
> launched. What I was doing was writing a wrapper app around it which
> would do a little hacky piping of the password into a sudo prompt
> which would launch the app as root. But I know that a security update
> disabled doing that. So my question is, is there a way to use the
> Security Framework to launch another application as root?
The answer is yes. If this application you want to launch is in Mach-O
format, then you'd just have the security framework launch
/Path/To/Your/Application.app/Contents/MacOS/Application.
If this application is in CFM format, then you'll have to make your
program run the "open" command and pass the path to the application as
an argument.
Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page: http://dreamless.home.attbi.com/
"La la la! I sing, too! For food, for food! La la la!" - Gabo, Dragon
Warrior VII
DATE : Thu Nov 07 19:57:00 2002
On Thursday, November 7, 2002, at 03:25 PM, <email_removed> wrote:
> I have a GUI app that needs to run as a system user every time it is
> launched. What I was doing was writing a wrapper app around it which
> would do a little hacky piping of the password into a sudo prompt
> which would launch the app as root. But I know that a security update
> disabled doing that. So my question is, is there a way to use the
> Security Framework to launch another application as root?
The answer is yes. If this application you want to launch is in Mach-O
format, then you'd just have the security framework launch
/Path/To/Your/Application.app/Contents/MacOS/Application.
If this application is in CFM format, then you'll have to make your
program run the "open" command and pass the path to the application as
an argument.
Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page: http://dreamless.home.attbi.com/
"La la la! I sing, too! For food, for food! La la la!" - Gabo, Dragon
Warrior VII
| Related mails | Author | Date |
|---|---|---|
| fahrenba | Nov 7, 15:26 | |
| Nick Zitzmann | Nov 7, 19:57 | |
| Jeff Disher | Nov 7, 20:36 |






Cocoa mail archive

