Re: Using MoreSCF
Re: Using MoreSCF
- Subject: Re: Using MoreSCF
- From: Jens Bauer <email@hidden>
- Date: Mon, 7 Oct 2002 19:02:17 +0200
Hi Mark,
On Mon, 7 Oct, 2002, email@hidden <email@hidden> wrote:
>
Hi,
>
I have been try to get the MoreSCF utils to work, and just realize I need
>
to my dialler, to be ran as root, and then I got the API's to work.
>
>
The thing I thought was strange is that my network settings weren't
>
locked, so when I wasn't logged in as root user, I thought it should have
>
worked. I.e. The lock in the network settings is unlocked.
>
>
Any ideas, how I can my application to temporally to have root access when
>
setting up the configuration items, and then loose the privilege ???.
Yep, you'll need to download AuthSample from Apple's Web-site:
<
http://developer.apple.com/samplecode/Sample_Code/Security/AuthSample.htm>
>
I have seen the AuthSample, but this says that GUI applications shouldn't
>
be able to have root privileges which seems strange to me, and the sample is
>
presently confusing.
You will have to build a tool, which is executed by your GUI application.
It communicates with the AuthTool through a pipe, and tells the tool what
to do.
The tool contains the actual code, that, for instance, changes the
network settings.
>
I would have thought, that if a process wants root privileges, the process
>
calls an API, which causes a dialog to appear similar to clicking on the
>
unlock button in the system preferences (network settings), so the user is
>
fully aware that we are going to change something.
That was my initial hope as well. Some day we may get such an API,
depending on if it's secure this way.
You're on the right track, just continue this way, and you'll get through
it. :)
Love,
Jens
--
Problems exists to be ignored
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.