Re: Running an application owned by a different user
Re: Running an application owned by a different user
- Subject: Re: Running an application owned by a different user
- From: Greg Herlihy <email@hidden>
- Date: Sat, 08 Apr 2006 13:45:36 -0700
- Thread-topic: Running an application owned by a different user
Setting the SUID file bit (chmod +s) on the other application's executable
will cause that application to run with the account that owns the executable
and not with the account that actually launched it. So as long as the other
user's account owns the other application's executable, then having the
owner account set the executable file's SUID bit should be all that is
required to have that other application run with the other user's account -
no matter which account actually launches it.
Note that no special authorization is needed here because the owner of a
file is always able to set its SUID bit. In other words, setting a file's
SUID bit on does not require special authorization or root privileges
(unless the owner of the file is the root account, of course).
Greg
On 4/8/06 5:53 AM, "Andrew Bush" <email@hidden> wrote:
> Hi all,
>
> I suspect this isn't the correct mailing list for this question, but Im
> not sure where else to ask it...suggestions are welcome..
>
> ...it may even be a stupid question...
>
> I need to be able to make my cocoa application run a separate gui
> application that exists only in the application directory of a
> different user to the one currently logged in.
>
> I want the other application to run only with access only to *its user*
> preferences/application support etc....so making a copy across to the
> current user and using chmod on it will not work because doing so will
> cause it to access the filesystem available to the *current* user,
> whereas I want it to be restricted to only the parts of the file system
> available to its owning user.
>
> is there any sensible way to do this? where would I start looking?
>
>
> thanks for any help.
>
>
> Yours cheerfully,
>
>
> Andrew Bush
>
> _______________________________________________
> 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
_______________________________________________
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