Authorized operations
Authorized operations
- Subject: Authorized operations
- From: Thomas Davie <email@hidden>
- Date: Sat, 16 Aug 2003 11:25:26 +0100
Hi,
I'm not certain this is the right place to post this question, but I
couldn't see any more appropriate list on apple's lists page, so I hope
that this isn't too OT.
I'm currently writing a small cocoa app that needs to be able to run
various tools as root. I have a self-repairing helper tool that seems
to get authorized correctly - I have a couple of logging statements in
there that inform me that the UID after authorizing is 0. My problem
is then running the tools that I need - One of the tools I need to run
is crontab -l {user}, however if I run a new task from my helper app it
is run as the logged in user, not as root (because when you setuid only
your effective uid becomes root and your real uid remains as the logged
in user, meaning that if you run a new task it's effective uid becomes
the logged in user). How can I get crontab to run as root? I could
use sudo and set crontab -l {user} to not require a password when I
install, but I don't think many users are going to be too keen on that
one, is there a way to do it using AuthServices?
Thanks
Tom Davie
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.