Re: [NOT NEWBIE]launching tasks as root
Re: [NOT NEWBIE]launching tasks as root
- Subject: Re: [NOT NEWBIE]launching tasks as root
- From: Ondra Cada <email@hidden>
- Date: Wed, 2 Oct 2002 02:38:56 +0200
On Wednesday, October 2, 2002, at 01:11 , Charles Srstka wrote:
When I launch a task with AuthorizationExecuteWithPrivileges(), the
actual UID of that task is the same as the currently logged-in user, but
the effective UID is root.
That's right. It's exactly the way it should be, at least so far as I
understand unix.
Unfortunately, the vsdbutil tool requires the actual UID be root.
I regret to say I don't know vsdbutil, but it looks like it is buggy. Is
there anyone you can ask to fix the bug? Or is it perhaps possible that
its creators did not want you to be able to use su/sudo?
Is there any way I can launch a task with an actual UID of root without
resorting to using sudo?
Matter of factly, sudo would not help either (its man page seems to say
otherwise, so far as I understand it, but this is what really happens):
168 ~> id -p
uid apple
groups staff admin
169 ~> su root
Password:
1 /Users/apple# id -p
login apple
uid root
groups wheel daemon kmem sys tty operator staff guest admin
2 /Users/apple#
170 ~> sudo id -p
Password:
login apple
uid root
groups wheel daemon kmem sys tty operator staff guest admin
171 ~> sudo sh
sh-2.05a# id -p
login apple
uid root
groups wheel daemon kmem sys tty operator staff guest admin
sh-2.05a#
---
Ondra Hada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
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.