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

Similar Threads
thread Thread Starter Forum Replies Last Post
Resolved: 13" MacBook Pro Retina not display "switch user" after sleep mtbdudex MacBook Pro 1 Mar 1, 2014 01:46 PM
"Another device is using this computer's IP address""Shared" user's slowing down Wifi mnya OS X 2 Feb 15, 2014 01:30 PM
How to run game applications as "Guest User"? SammyDFG Mac Applications and Mac App Store 0 Jan 13, 2013 07:44 PM
Application dock item showing ".app" on every application Pipper99 Mac OS X 10.7 Lion 2 Jul 21, 2012 02:00 PM
17" User's: "IF" 17" MBP is discontinued. Jazwire MacBook Pro 59 Jun 26, 2012 01:46 PM

Forum Jump

All times are GMT -5. The time now is 04:46 AM.

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

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