Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > OS X

Reply
 
Thread Tools Search this Thread Display Modes
Old May 22, 2007, 05:41 AM   #1
willybNL
macrumors 6502
 
Join Date: Jul 2006
Location: ((New York) - (New) ) + Zoom out = Europe, The Netherlands
"Run as" Application as different user

In windows and linux I'm able to run programs as other users. Eg. I want to start mail as user '2', while being logged in as user 1.

Howto?

Or something like 'fast changing user' while the other stays login... how to?
__________________
-Likes to keep his signature short
willybNL is offline   0 Reply With Quote
Old May 22, 2007, 05:43 AM   #2
Mitthrawnuruodo
Moderator
 
Mitthrawnuruodo's Avatar
 
Join Date: Mar 2004
Location: Bergen, Norway
Quote:
Originally Posted by willybNL View Post
Or something like 'fast changing user' while the other stays login... how to?
System Preferences -> Accounts -> Login options: Check "Enable fast user switching"
__________________
Those who fail to learn history are doomed to repeat it; those who fail to learn history correctly... why, they are simply doomed.
Mitthrawnuruodo is offline   0 Reply With Quote
Old May 22, 2007, 05:53 AM   #3
tyr2
macrumors 6502a
 
tyr2's Avatar
 
Join Date: May 2006
Location: Leeds, UK
If it's just one command you want to run as another user use sudo.

'sudo -u theusername thecommand'

Last edited by tyr2; May 22, 2007 at 06:04 AM. Reason: Didn't make sense the first time...
tyr2 is offline   0 Reply With Quote
Old May 22, 2007, 06:11 AM   #4
willybNL
Thread Starter
macrumors 6502
 
Join Date: Jul 2006
Location: ((New York) - (New) ) + Zoom out = Europe, The Netherlands
Quote:
Originally Posted by tyr2 View Post
If it's just one command you want to run as another user use sudo.

'sudo -u theusername thecommand'
Yep... but how to this graphically in finder? or in the dock.
__________________
-Likes to keep his signature short
willybNL is offline   0 Reply With Quote
Old May 22, 2007, 08:48 AM   #5
epochblue
macrumors 68000
 
epochblue's Avatar
 
Join Date: Aug 2005
Location: Nashville, TN
Quote:
Originally Posted by willybNL View Post
Yep... but how to this graphically in finder? or in the dock.
AFAIK, the only way to do this is to use fast user switching or write some kind of AppleScript or Automator Action that uses the sudo -u command underneath.
__________________
-- 13" MacBook Air (Mid-2012), iPhone 5, iPad Mini
epochblue is offline   0 Reply With Quote
Old May 22, 2007, 03:53 PM   #6
SC68Cal
macrumors 68000
 
Join Date: Feb 2006
Quote:
Originally Posted by tyr2 View Post
If it's just one command you want to run as another user use sudo.

'sudo -u theusername thecommand'
No, no no!

Log into user 2 in terminal. Don't use sudo!

Just use fast user switching.
SC68Cal is offline   0 Reply With Quote
Old May 22, 2007, 04:29 PM   #7
MagicUK
macrumors regular
 
Join Date: May 2007
Location: Hampshire, England
Send a message via AIM to MagicUK Send a message via MSN to MagicUK Send a message via Skype™ to MagicUK
Okay so you have described what, now describe how.

So we are logged on as user 1 how do we invoke a terminal session as another user?

Please be gentle.
__________________
Thanks & Regards
Mark Dalton
http://www.markdalton.co.uk
MacBook Pro 17"
iPod 5G 80GB
MagicUK is offline   0 Reply With Quote
Old May 22, 2007, 04:33 PM   #8
MacsRgr8
macrumors 604
 
MacsRgr8's Avatar
 
Join Date: Sep 2002
Location: The Netherlands
Type:
su <user>
__________________
Steve Jobs. 1955 - 2011. My Hero.
MacsRgr8 is offline   0 Reply With Quote
Old May 22, 2007, 04:41 PM   #9
SC68Cal
macrumors 68000
 
Join Date: Feb 2006
Quote:
Originally Posted by MagicUK View Post
Okay so you have described what, now describe how.

So we are logged on as user 1 how do we invoke a terminal session as another user?

Please be gentle.
open terminal

type
Code:
 login user2
SC68Cal is offline   0 Reply With Quote
Old May 23, 2007, 05:06 AM   #10
MagicUK
macrumors regular
 
Join Date: May 2007
Location: Hampshire, England
Send a message via AIM to MagicUK Send a message via MSN to MagicUK Send a message via Skype™ to MagicUK
Doh! Thanks!
__________________
Thanks & Regards
Mark Dalton
http://www.markdalton.co.uk
MacBook Pro 17"
iPod 5G 80GB
MagicUK is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Cannot "Save As" in Preview (10.7) theelysium Mac OS X 10.7 Lion 72 Apr 4, 2014 12:37 AM
Running applications installed as another user c-Row OS X 1 Jul 29, 2010 06:15 AM
How in OSX "Run As" and "Open As" (not command-line) mamcx OS X 29 Nov 18, 2009 06:08 PM
Run Cocoa Application as Root user ruhi Mac Programming 13 Aug 10, 2009 07:21 AM
Run as different user via GUI jakaj OS X 1 Nov 15, 2006 02:17 PM


All times are GMT -5. The time now is 02:51 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC