• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Best way to authenticate ?..
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Best way to authenticate ?.. (From: "Sven A. Schmidt" <email@hidden>)

  • Prev by Date: Re: Fastest/smallest search+replace
  • Next by Date: Re: Best way to authenticate ?..
  • Previous by thread: Re: Best way to authenticate ?..
  • Next by thread: Just had to ask...
  • Index(es):
    • Date
    • Thread