RE: Possibly dumb question - how to force postflight script to runwith root priviledges
RE: Possibly dumb question - how to force postflight script to runwith root priviledges
- Subject: RE: Possibly dumb question - how to force postflight script to runwith root priviledges
- From: Lisa Weimer <email@hidden>
- Date: Thu, 13 Nov 2008 12:10:00 -0700
- Thread-topic: Possibly dumb question - how to force postflight script to runwith root priviledges
Title: RE: Possibly dumb question - how to force postflight script to runwith root priviledges
The logging files are then viewable in the /Applications/Utilities/Console under system.log (or All Messages or Console Messages). You might have a message here already saying why the script couldn't run. If it is an install error though, like with the installer itself you can either view the log while the install is running (Window->Installer Log) or via the Console (you have to dig in /var/log for it)
Lisa
-----Original Message-----
From: installer-dev-bounces+lisaweimer=email@hidden on behalf of Greg Neagle
Sent: Thu 11/13/2008 11:25 AM
To: Taylor Armstrong
Cc: email@hidden
Subject: Re: Possibly dumb question - how to force postflight script to runwith root priviledges
I'd start by adding some logging to the script so you can crudely
trace its execution. Something simple like:
/usr/bin/logger -t MyPackagePostFlightScript "About to edit plist name"
.
.
.
/usr/bin/logger -t MyPackagePostFlightScript "Finished editing plist"
Then install the package and look at the system.log or even
grep MyPackagePostFlightScript /var/log/system.log
-Greg
On Nov 13, 2008, at 9:37 AM, Taylor Armstrong wrote:
> Running into a snag, probably a simple fix, but I'm showing my
> ignorance.
>
> I have a package created that places the files in the required
> directory, then runs a postflight script to add the MAC address to
> one of the plists.
>
> The package is configured in Iceberg to require root privileges
> (Authorization: Root Authorization is set). When I run the package
> however, the files are copied, but the script does not run
> correctly, and fails.
>
> If I push the script via ARD (using the "send unix command"
> function), with root privileges, it works as expected.
>
> I'm a bit clueless as to where to look.
>
> Any suggestions?
>
> Taylor
>
>
> --
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> W. Taylor Armstrong email@hidden
> NOAA's National Ocean Service IT Support - AA/MB Team Lead 1305 East-
> West Highway Phone (301) 713-2644 Silver
> Spring, MD 20910 http://nos.noaa.gov
> IT Support Request Email: 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
_______________________________________________
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