• 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
Authentication & suid tool
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Authentication & suid tool


  • Subject: Authentication & suid tool
  • From: Brad Peterson <email@hidden>
  • Date: Wed, 17 May 2006 00:26:10 -0700 (PDT)

Hi,

I have a tool which can authenticate itself and do a
chmod/chown on itself. So far, so good, right?

Well, the problem is that I don't seem to be able to
check for my own suid bit.

This is a tool which (for the moment) is the
executable inside a bundle. The permissions are:

-rwsr-xr-x   1 root  wheel  35088 May 17 00:12
AuthorizationUI

So, clearly, the code which sets the
permissions/ownership is working. But, when I run the
app from within Finder, it outputs the following
values (for the corresponding "get" functions):

501 - euid
501 - gid
501 - egid
501 - ugid

and, worse, it continues to prompt for the admin
username/password. EyeTV used to do something very
much like this, so I have reason to believe it's at
least _possible_.

At first, I thought running the bundle/app from within
Finder was the problem, but even running it from
Terminal produces the same behavior.

Essentially, the

if (geteuid() != 0) {

test always fails.

I'd be grateful for any suggestions. (Sorry if this is
a bit rambling; it's late for me and I've been staring
at this for a while.)

Thanks!!

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Authentication & suid tool
      • From: Brad Peterson <email@hidden>
  • Prev by Date: Using SenTestingKit for testing a framework
  • Next by Date: Re: coredata framework daemon-safe?
  • Previous by thread: Re: Using SenTestingKit for testing a framework
  • Next by thread: Re: Authentication & suid tool
  • Index(es):
    • Date
    • Thread