Re: Best way to authenticate ?..
Re: Best way to authenticate ?..
- Subject: Re: Best way to authenticate ?..
- From: Jayce Piel <email@hidden>
- Date: Mon, 14 May 2001 20:26:20 +0200
Le lundi 14 mai 2001, ` 07:35, Sven A. Schmidt a icrit :
On Montag, Mai 14, 2001, at 06:50 Uhr, Jayce Piel wrote:
The second is more cocoa-based... I can't find a doc on the "good-way"
to authenticate as a system administrator... Like sudo... As I need
root privileges for a script that I will launch, is the better way is
to launch the script with a sudo ? Is there a better way ?
There's an article about authorization on stepwise:
http://www.stepwise.com/Articles/Technical/2001-03-26.01.html
Thanks, I will read it...
No idea for the first question ?
That pretty much covers it except for on thing: If you really need to
_be_ root, you need a wrapper to your command that calls setuid(0). For
example "crontab" wouldn't let me read another user's crontab with the
authorization framework, because although one gets root rights, only
the effetive uid is set to root, I think. So what I had to do was write
a little program that calls setuid(0) and then "crontab".
Ok, I need root access because I need to copy files belonging to root...
(some in loginwindow.app wrapper)
--
Jayce Piel ( email@hidden )
************* MosX.net *************
Le premier site Web sur MacOS X (Server) en frangais :
<
http://www.mosx.net/> email@hidden
--
Jayce Piel ( email@hidden )
************* MosX.net *************
Le premier site Web sur MacOS X (Server) en frangais :
<
http://www.mosx.net/> email@hidden