Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Programmer > Re: Running a r...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 9 Topic 930 of 1040
Post > Topic >>

Re: Running a root process.

by SM Ryan <wyrmwif@[EMAIL PROTECTED] > Mar 25, 2007 at 02:54 AM

Posted response for google archiving.

# I would like to do some code like edit Apache configuration
# that requires uid root. What I can do is just install a setuid
# root and just make the changes unannounced. What I would like
# to do use some function like this
# 
# 	suexec(...) - Display the security dialog and on successful
# 		identification as an administrator user and password,
# 		exec the program ... as setuid root.
# 

The answer is AuthorizationExecuteWithPrivileges.


Sherm Pendley <spamtrap@[EMAIL PROTECTED]
> wrote:

Thanks for directing me to the specific function so I didn't have to wade
through a bunch of irrelevant (to a very specific question) issues about
authorisation and authentication and security servers. It must an Apple
cultural issue to spend an  hour not answerring a question that only takes
five seconds to answer.

(Now that I have the function name, I can read the interface and
understand Apple's entire philosophy on setuid programs, never explicitly
stated before, and understand how their security framework rests on that
philosophy and then proceed knowing where I am going to end up, instead
having to meander page after page not knowing if I can even do what I want
to do or if I will spend a week of studying only then to learn if I have
to abandon my strategy. So, yeah, thanks.)

--
SM Ryan http://www.rawbw.com/~wyrmwif/
If your job was as meaningless as theirs, wouldn't you go crazy too?
 




 9 Posts in Topic:
Running a root process.
SM Ryan <wyrmwif@[EMAI  2007-03-24 21:56:54 
Re: Running a root process.
Sherm Pendley <spamtra  2007-03-24 19:53:32 
Re: Running a root process.
SM Ryan <wyrmwif@[EMAI  2007-03-25 00:10:20 
Re: Running a root process.
Michael Ash <mike@[EMA  2007-03-24 19:19:46 
Re: Running a root process.
Sherm Pendley <spamtra  2007-03-24 20:45:06 
Re: Running a root process.
SM Ryan <wyrmwif@[EMAI  2007-03-25 02:54:09 
Re: Running a root process.
Sherm Pendley <spamtra  2007-03-25 00:54:35 
Re: Running a root process.
Ben Artin <macdev@[EMA  2007-03-25 02:16:12 
Re: Running a root process.
SM Ryan <wyrmwif@[EMAI  2007-03-26 22:13:07 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 6:35:06 CST 2008.