writing files as root from Installer Plugin
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Hi again, I hope this is the appropriate list to send this to - it's perhaps more of a general cocoa programming question, so feel free to direct me elsewhere. One thing my installer plugin needs to do is take input from the user, validate it and write it out to a file. There's every possibility that this file could be only writable by root on any given system, so my plugin needs to get appropriate authorization for the user to write this file as root. I've read the doc "Performing Privileged Operations With Authorization Services", but this seems to be C only. It appears that the Objective-C way would be to use SFAuthorizationm but docs on this seem a little thin on the ground. What I'd really like to see is some sample code. Does anyone have such a thing? Or is there perhaps a better way to achieve what I want to do? Or should I just use a chunk of C in my plugin? Many thanks in advance and apologies for the vagueness of my questions. Cheers Toby -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Toby Blake