OS X Permission

I look forward to updating the next section, since it does not compile when using Xcode 4.1 and higher (https://developer.apple.com/library/mac/navigation/#section=Topics&topic = Security) and, more specifically, for authorization applications (for example, in the "Best authorization" mode).

The idea is to write a simple application to access some plist files in protected areas of the OS X file system (as macpilot does) to set up Time Machine.

The application I wrote should have access to one file in / System / Library / LaunchDaemons /

The above example shows a method for granting access rights to applications for a given time. In my case, I need write permission for the file, and I have to ask the OS to enter the administrator name and password in order to apply the changes to the correct file.

+4
source share
1 answer

You need an authorized assistant that actually performs file modifications, and your application is just the interface information that is passed to this assistant.

Read this: http://www.bornsleepy.com/bornsleepy/os-x-helper-applications

Sample code on Github (with a good readme): https://github.com/elegantchaos/ECHelper

Apple documentation on this topic: http://developer.apple.com/library/mac/#documentation/security/conceptual/authorization_concepts/01introduction/introduction.html

+1
source

All Articles