Re: How to create a daemon user in installer?
Re: How to create a daemon user in installer?
- Subject: Re: How to create a daemon user in installer?
- From: Stéphane Sudre <email@hidden>
- Date: Thu, 10 Jan 2013 10:16:18 +0000
- Acceptlanguage: en-US
- Thread-topic: How to create a daemon user in installer?
On Jan 10, 2013, at 9:53 AM, Matt Arsenault wrote:
>
> On Jan 10, 2013, at 3:45 , Stéphane Sudre <email@hidden> wrote:
>
>>
>> On Jan 9, 2013, at 10:41 PM, Matt Arsenault wrote:
>>
>>> Hi,
>>>
>>> I'm trying to write an installer that adds a new launch daemon that runs as a separate user.
>>
>> What do you mean by "I'm trying to write an installer"?
>>
>> Writing a custom installer or creating a standard installation package?
>>
>> Because if you're creating a standard installation package, you can achieve what you're trying to do with postinstallation scripts.
>
> I'm trying to avoid having an installer package. On first run of the program it will prompt to run this "installer"
That's not necessarily two incompatible solutions. You could embed the installation package in your application's bundle and just open it. This way you don't have to deal with deprecated AuthExecWithPrivileges API and can use launchctl to start your daemon (and create user accounts) from a shell script.
Ideally, if we had access to the same APIs and docs as the Xcode 4 team (for the installation of the MobileDevice*.pkg packages), this installation process could be smoothly integrated in the UI of your application.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden