• 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: How to make an application non-executable?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to make an application non-executable?


  • Subject: Re: How to make an application non-executable?
  • From: Todd Ransom <email@hidden>
  • Date: Fri, 16 Jul 2004 14:16:51 -0600

If you're just worried about it running accidentally, and not worried about providing real security against someone running it maliciously, just chmod it so it's not executable.

In your app's bundle, under Contents/MacOS/ lives the real executable.

chmod -x myapp

will prevent it from running.

chmod +x when you copy it out of the setup app will enable it to run again. I'm not sure if there's a Cocoa way to do this other than running chmod with NSTask or something similar. It is a permission bit so if Cocoa has an API for setting unix/darwin/BSD permissions I would look into that.

HTH,
TR

On Jul 16, 2004, at 1:15 PM, Bill Cheeseman wrote:

I'm looking for an easy way to make an application non-executable, for
example, by compressing or encrypting it. Any ideas?
_______________________________________________
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.


References: 
 >How to make an application non-executable? (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: How to make an application non-executable?
  • Next by Date: Re: owning the screen?
  • Previous by thread: Re: How to make an application non-executable?
  • Next by thread: Re: How to make an application non-executable?
  • Index(es):
    • Date
    • Thread