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.
source share