Re: Making an installer package (locations and, owner/group)
Re: Making an installer package (locations and, owner/group)
- Subject: Re: Making an installer package (locations and, owner/group)
- From: Jonas Maebe <email@hidden>
- Date: Tue, 5 Oct 2010 13:18:13 +0200
On 05 Oct 2010, at 13:06, Christiaan Hofman wrote:
On Oct 5, 2010, at 11:34, Jonas Maebe wrote:
On 05 Oct 2010, at 11:15, Antonio Nunes wrote:
1. Permissions for the apps. I want the user to be able to move/
remove the GUI app from the applications folder after
installation. According to recommendations owner and group should
be root/admin, but that results in the GUI app not being
relocatable by the user without entering an admin password. What
would be the correct owner/group and permissions to set in
PackageMaker for the GUI app?
Make everything also group-readable/writable.
I would disagree with both of you, based on what I see in my
Applications folder. I would say that you should get the same as a
standard installation would give you (i.e. drag&drop from a dmg),
which means that the owner should be the user.
It's normal that this is the default from a drag&drop (any other
default would require hacks, since this behaviour is the default
behaviour for copying a file), but it's inconvenient if you have
multiple admin users or for an installer package (the installer simply
unpacks a xar file that contains for each file a numerical
representation of the owner/group, and there is no numerical
representation for "the user executing this installer").
I don't see any downside to giving all admin users the right to remove
the binary afterwards without entering their password.
Apple installs its apps with root as owner, but it does not make it
group-writable.
That's probably because Apple doesn't want you to accidentally delete
system apps.
So this proposal would not correspond to anything that normally
happens, therefore I would not recommend it. So unless your app
needs special privileges for some reason, I would say that the owner
should be the user.
Setting the owner to root does not change anything about the
privileges granted to the app (even adding the setuid flag won't do
anything anymore for GUI apps on current Mac OS X versions).
Jonas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden