• 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: Authorization Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Authorization Question


  • Subject: Re: Authorization Question
  • From: "Alastair J.Houghton" <email@hidden>
  • Date: Thu, 31 Jul 2003 10:36:17 +0100

On Thursday, July 31, 2003, at 01:26 am, Isaac Sherman wrote:

How would I make a program that always runs with Root access, but doesn't
ask for administrator authorization every time it's launched?
I've been working on the docs and example code, and it appears that I always
need said permission, contrary to the docs. After setting it's UID Bit, it
still requires me to authorize to execute it.

Are you talking about the setuid bit (the filesystem attribute)? If so, remember that you need to change the file so that it is owned by root if you want it to run with root privileges.

It's also worth mentioning that Cocoa programs that run with the setuid bit set are a security risk because of things like input managers. See pp. 838-839 of Cocoa Programming (Anguish, Buck & Yacktman) for an explanation of why you shouldn't do things that way.

Kind regards,

Alastair.
_______________________________________________
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.

References: 
 >Authorization Question (From: Isaac Sherman <email@hidden>)

  • Prev by Date: Dragging an item to a folder in the Dock
  • Next by Date: Re: NSDocument/NSFileWrapper troubles: solved
  • Previous by thread: Re: Authorization Question
  • Next by thread: NSDocument/NSFileWrapper troubles
  • Index(es):
    • Date
    • Thread