Re: Executing shell script with root privilege

2010-02-19 Thread cocoa learner
Steven, You are right. I got my way. Regards, Cocoa.learner On Mon, Feb 15, 2010 at 9:01 PM, Steven Degutis wrote: > Essentially you need to use the Security.framework API which you were > already using in the beginning. You're already heading in the right > direction. If you continue to read t

Re: Executing shell script with root privilege

2010-02-15 Thread Steven Degutis
Essentially you need to use the Security.framework API which you were already using in the beginning. You're already heading in the right direction. If you continue to read the docs on it, you'll get your sample code working; they're pretty thorough docs I believe. -Steven On Mon, Feb 15, 2010 at

Re: Executing shell script with root privilege

2010-02-14 Thread cocoa learner
Ok let me put my problem in simple words - I have a cocoa app and I want to launch a shell script which has to do some task with root privilege. How can I do it??? Regards, Cocoa.learner On Mon, Feb 15, 2010 at 1:49 AM, Nick Zitzmann wrote: > > On Feb 13, 2010, at 11:05 PM, cocoa learner wrote

Re: Executing shell script with root privilege

2010-02-14 Thread Nick Zitzmann
On Feb 13, 2010, at 11:05 PM, cocoa learner wrote: > And permission of this script is - > -rwx-- 1 root wheel 536 Feb 14 10:51 /Users/test/myScript > > > When I am executing the app "launchScript" is returning me TRUE but my > script is not getting executed. I am totally lost, have no clu