(no subject)
(no subject)
- Subject: (no subject)
- From: Andrew <email@hidden>
- Date: Fri, 28 Nov 2008 23:27:43 +0800
Get
the specific user first, and then use su command to do your job like this:
Su �Cl
user �Cc “launchctl load ~/Library/LaunchAgents/com.yourcompany.yourproduct.plist”
发件人:
installer-dev-bounces+andrew.macdev=email@hidden
[mailto:installer-dev-bounces+andrew.macdev=email@hidden] 代表 Arjun SM
发送时间: 2008年11月28日
14:49
收件人:
email@hidden
主题: launching agents during install running as root instead of
usercontext
Hi All,
I've built an install using Apple's PackageMaker utility.
It installs a user agent.
At the end of the install I would like to start the user agent using launchctl.
However, since I had to elevate privileges during the install , I end up
starting the user agent as root.
Is there any way to un-elevate privileges during an install so that launch
agent starts in user context?
Thanks in advance
Arjun M
|
_______________________________________________
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