• 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: Running an application owned by a different user
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running an application owned by a different user


  • Subject: Re: Running an application owned by a different user
  • From: Paul Forgey <email@hidden>
  • Date: Sun, 9 Apr 2006 06:06:55 -0700

No, you need to prove you are administrative. The root privilege is then used to switch to the desired user.

This is no different than sudo.

On Apr 9, 2006, at 5:18 AM, Uli Kusterer wrote:

Am 09.04.2006 um 08:20 schrieb Paul Forgey:
I'd use Authorization Services to become root, then suid to the user you want to. I'm not too familiar with the finer points of Authorization Services, but I know it can spawn executables as root after getting the credentials of a privileged user. That executable could be a resource in your bundle that calls suid () on a desired user and then either exec's the program you want to run or calls Launch Services to do it and then exit.

Just curious: Wouldn't that be even less safe? You need a root password instead of just the password of the user you want to become, after all?


Cheers,
-- M. Uli Kusterer
http://www.zathras.de


_______________________________________________ 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
References: 
 >Re: Running an application owned by a different user (From: Greg Herlihy <email@hidden>)
 >Re: Running an application owned by a different user (From: Paul Forgey <email@hidden>)
 >Re: Running an application owned by a different user (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: Running an application owned by a different user
  • Next by Date: Re: Running an application owned by a different user
  • Previous by thread: Re: Running an application owned by a different user
  • Next by thread: Re: Running an application owned by a different user
  • Index(es):
    • Date
    • Thread