Re: Possibly dumb question - how to force postflight script to run with root priviledges
Re: Possibly dumb question - how to force postflight script to run with root priviledges
- Subject: Re: Possibly dumb question - how to force postflight script to run with root priviledges
- From: Greg Neagle <email@hidden>
- Date: Thu, 13 Nov 2008 10:25:58 -0800
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