Re: Running an App as Root
Re: Running an App as Root
- Subject: Re: Running an App as Root
- From: Creed Erickson <email@hidden>
- Date: Wed, 5 Nov 2003 07:07:41 -0800
On Wednesday, November 5, 2003, at 06:01 AM, David Blanton wrote:
Ok, before I start digging ... We have a StartupItem which requires
authorization to be installed. So the suggestion here is to use that
to do
the 'root stuff' we require. Do I understand correctly? If that is
the
case then my question is what is the best inter process communication
to use
between the GUI App and Daemon?
Two scenarios:
1) The startup item adjusts ownership and/or permissions of some target
file as needed when the system is started. Task accomplished. i.e., The
file in question is changed only once at startup as a sort of setup
step.
2) The desire is to change the ownership and/or permissions based
directly or indirectly on some user input to a user level app.
Which are you trying to deal with?
If 1 then the system startup item, which runs as root, should be able
to do the trick.
If 2, you need to have the user go through an authentication step. IN
NO WAY SHOULD AN UNAUTHORIZED USER BE ALLOWED TO CHANGE OWNERSHIP OR
PERMISSIONS ON A FILE HE DOESN'T HAVE SUFFICIENT PERMISSIONS TO CHANGE.
That is a security hole big enough to drive an army through and
potentially exposes you and/or your company to legal liability.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.