• 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: Launchd scripts with root access
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Launchd scripts with root access


  • Subject: Re: Launchd scripts with root access
  • From: Watchman Monitoring <email@hidden>
  • Date: Wed, 27 Jun 2012 09:34:21 -0500

Seeing the script, or more importantly, how you're calling it, would be helpful.

Also, how are you validating the contents of what you've downloaded?




--
Sent from a tiny keyboard, please excuse any brevity.

Allen Hancock


On Jun 27, 2012, at 9:22 AM, Chris Waldrip <email@hidden> wrote:

> We have a script that we want to update automatically. The script checks for a new version when it runs, and it downloads a zip file, expands that, and installs the contents.
>
> The script is executed from a plist in /System/Library/LaunchAgent/, so it should have root authorization.
>
> Yet when the script runs and it executes the installer command line tool, the install fails for lack of root permission.
>
> I modified the script to simply move (mv -f) the specific components to the appropriate locations (/System/Library/LaunchAgent, etc). But the move fails for lack of root permission.
>
> What am I missing? :-(
>
> -Chris Waldrip
> _______________________________________________
> 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

  • Follow-Ups:
    • Re: Launchd scripts with root access
      • From: Chris Waldrip <email@hidden>
References: 
 >Launchd scripts with root access (From: Chris Waldrip <email@hidden>)

  • Prev by Date: Re: Launchd scripts with root access
  • Next by Date: How to use Action menu within packagemaker
  • Previous by thread: Re: Launchd scripts with root access
  • Next by thread: Re: Launchd scripts with root access
  • Index(es):
    • Date
    • Thread