Jolly Roger <> wrote:
> In article <>,
> Mathias K¼rber <> wrote:
>
> > I know I can switch between users in OSX, but would it be possible
> > to log into the second account (eg admin) in a window, so that I can
> > continue using the first one while watching eg. a software update etc?
>
> Yes, I've done it quite a few times, and it's useful in some situations.
> It takes a little familiarity with the command line and some careful
> clicks, but it works great. Try this:
>
> 1. Open System Preferences > Sharing.
> 2. Turn on Remote Management (or Screen Sharing).
> 3. Set it to allow access for both accounts in question.
> 4. Open /Applications/Utilities/Terminal.
> 5. Enter this command: ssh -NL 5901:localhost:5900 localhost
> 6. Do not close the terminal window until you no longer need the screen
> sharing session. If you do, you'll lose the session.
> 7. From the Finder menu bar, choose Go > Connect to Server.
> 8. Enter this Server address: vnc://localhost:5901
> 9. Click Connect.
> 10. When you are prompted for a username and password enter the
> credentials of the user account that you are not using. (see *** below)
> 11. When you see the Select Display dialog box, do not click Share the
> display - instead, click Connect to a virtual display (see your desktop
> and files).
This will only work if the computer is running Lion.
In Lion, it is possible to log in to the computer via Screen Sharing as
a different user from the one who is currently logged in, and get a
separate login session.
In Snow Leopard and earlier it is not. If you log in via screen sharing,
you see the screen of the current user, even if you use someone else's
credentials.
Out of curiosity, I tried JR's instructions in Snow Leopard and I ended
up with an infinitely nested view of Screen Sharing inside Screen
Sharing. It was very difficult to get back to normal as the user
interface was not responding (I could log in using ssh from my iPhone
and kill the ssh process created in step 5 above, which forcefully
terminated the screen sharing session).
--
David Empson