• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Packages(.app) owner/group question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Packages(.app) owner/group question


  • Subject: Re: Packages(.app) owner/group question
  • From: Mike Solin <email@hidden>
  • Date: Fri, 03 Mar 2017 20:37:17 -0500

Do you know which file your application is trying to access?  Can you check the permissions on that file?  It should be root:admin, 644 (owner: read/write, group: read, other: read).  In some cases, you might need to give execute permissions as well (which would make it 755).  Run this command:

ls -la /Applications/YourApplication.app/Contents/Resources/

Mike

--

email@hidden / @flammable
http://mikesolin.com

> On Mar 3, 2017, at 8:28 PM, Stephen Kay <email@hidden> wrote:
>
> I am in the process of making my first Packages Installer and replacing a
> MindVision VISE installer I've used for years.
>
> First, must say Packages rocks! I really like it, kudos to Stéphane Sudre,
> great program. I built an installer that did most of what my VISE X one
> did within an hour, including installing various pieces of a third-party
> driver system that goes along with it in system level folders.
>
> But I do have a problem with privileges. When I have it install my app in
> the /Applications folder, the default is that it gets installed with the
> owner/group attribute of root : admin. When the application is launched,
> it tries to open a Resources file that is in the app's package contents.
> This now fails and returns an error of:
>
> afpAccessDenied = -5000; 	// insufficient access privileges for operation
>
> Whether or not my (old) app is trying to open this file in the best way or
> not is not the issue, it's worked for 20+ years when installed with the
> VISE installer, so I just want to get the owner/group right.
>
> When installed with VISE, the app ends up with owner/group "stephen/staff"
> (stephen is my account, the current user I guess).
>
> So, in Packages, when I look at the Attributes in the Payload tab, for
> owner there's a huge list of things, and at the bottom I see daemon, root
> and stephen (my account). So if I select "stephen" and then "staff" in
> group, is this equivalent to specifying the current user on the customer's
> machine?
>
> I did build a test installer package with it set to this and indeed it
> works as it used to, so I just want to make sure that this "fix" will
> translate to users machines correctly.
>
> Thanks,
> - Stephen
>
>
>
>
> _______________________________________________
> 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


 _______________________________________________
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


References: 
 >Packages(.app) owner/group question (From: Stephen Kay <email@hidden>)

  • Prev by Date: Packages(.app) - open app folder script
  • Next by Date: Re: Packages(.app) - open app folder script
  • Previous by thread: Packages(.app) owner/group question
  • Next by thread: Packages(.app) - open app folder script
  • Index(es):
    • Date
    • Thread