writing files as root from Installer Plugin
writing files as root from Installer Plugin
- Subject: writing files as root from Installer Plugin
- From: Toby Blake <email@hidden>
- Date: Fri, 9 May 2008 12:05:32 +0100 (BST)
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden