Skip to main content
Tweeted twitter.com/#!/StackApple/status/166211940081876992

OSX Lion, Run Coccaa Cocoa application on Lion as otheranother user

I've beenI'm trying to run aan application as the user 'steve' with the window displayed on my desktop ( brendan ).

This is what I have been doing so far.

sudo -u steve open -a /Path/To/MyApplication.app

No matter whatwhich application I try, it always runs with my privileges and not steve's, which is not what I want. The process is owned by me, even though I executed open under 'sudo -u steve' .

How can I simply execute a command from the console that will open any application with different user's privileges ( steve being the owning user of the process )?

Also, GUI tools such as RunAs and Peek-A-Boo ( I think that's what it was called, very similar ) are not aan option this. This command must be launched from a bash/zsh/python/whatever script.

Thanks!

OSX Lion, Run Cocca application as other user

I've been trying to run a application as the user 'steve' with the window displayed on my desktop ( brendan ).

This is what I have been doing so far.

sudo -u steve open -a /Path/To/MyApplication.app

No matter what application I try, it always runs with my privileges and not steve's, which is not what I want. The process is owned by me, even though I executed open under 'sudo -u steve' .

How can I simply execute a command from the console that will open any application with different user's privileges ( steve being the owning user of the process )?

Also, GUI tools such as RunAs and Peek-A-Boo ( I think that's what it was called, very similar ) are not a option this command must be launched from a bash/zsh/python/whatever script.

Thanks!

Run a Cocoa application on Lion as another user

I'm trying to run an application as the user 'steve' with the window displayed on my desktop ( brendan ).

This is what I have been doing so far.

sudo -u steve open -a /Path/To/MyApplication.app

No matter which application I try, it always runs with my privileges and not steve's, which is not what I want. The process is owned by me, even though I executed open under 'sudo -u steve' .

How can I simply execute a command from the console that will open any application with different user's privileges ( steve being the owning user of the process )?

Also, GUI tools such as RunAs and Peek-A-Boo ( I think that's what it was called, very similar ) are not an option. This command must be launched from a bash/zsh/python/whatever script.

Thanks!

added 2 characters in body
Source Link
nohillside
  • 104.5k
  • 42
  • 222
  • 275

I've been trying to run a application as the user 'steve' with the window displayed on my desktop ( brendan ).

This is what I have been doing so far.

$ sudo -u steve open -a /Path/To/MyApplication.app

sudo -u steve open -a /Path/To/MyApplication.app

No matter what application I try, it always runs with my privileges and not steve's, which is not what I want. The process is owned by me, even though I executed open under 'sudo -u steve' .

How can I simply execute a command from the console that will open any application with different user's privileges ( steve being the owning user of the process )?

Also, GUI tools such as RunAs and Peek-A-Boo ( I think that's what it was called, very similar ) are not a option this command must be launched from a bash/zsh/python/whatever script.

Thanks!

I've been trying to run a application as the user 'steve' with the window displayed on my desktop ( brendan ).

This is what I have been doing so far.

$ sudo -u steve open -a /Path/To/MyApplication.app

No matter what application I try, it always runs with my privileges and not steve's, which is not what I want. The process is owned by me, even though I executed open under 'sudo -u steve' .

How can I simply execute a command from the console that will open any application with different user's privileges ( steve being the owning user of the process )?

Also, GUI tools such as RunAs and Peek-A-Boo ( I think that's what it was called, very similar ) are not a option this command must be launched from a bash/zsh/python/whatever script.

Thanks!

I've been trying to run a application as the user 'steve' with the window displayed on my desktop ( brendan ).

This is what I have been doing so far.

sudo -u steve open -a /Path/To/MyApplication.app

No matter what application I try, it always runs with my privileges and not steve's, which is not what I want. The process is owned by me, even though I executed open under 'sudo -u steve' .

How can I simply execute a command from the console that will open any application with different user's privileges ( steve being the owning user of the process )?

Also, GUI tools such as RunAs and Peek-A-Boo ( I think that's what it was called, very similar ) are not a option this command must be launched from a bash/zsh/python/whatever script.

Thanks!

Post Migrated Here from stackoverflow.com (revisions)
Source Link

OSX Lion, Run Cocca application as other user

I've been trying to run a application as the user 'steve' with the window displayed on my desktop ( brendan ).

This is what I have been doing so far.

$ sudo -u steve open -a /Path/To/MyApplication.app

No matter what application I try, it always runs with my privileges and not steve's, which is not what I want. The process is owned by me, even though I executed open under 'sudo -u steve' .

How can I simply execute a command from the console that will open any application with different user's privileges ( steve being the owning user of the process )?

Also, GUI tools such as RunAs and Peek-A-Boo ( I think that's what it was called, very similar ) are not a option this command must be launched from a bash/zsh/python/whatever script.

Thanks!