image
image

|

Ticket Options
Question Details
TICKET ARCHIVE -> Running An Application As a Different User?
mathiek - Jun 15, 2005 - 12:16 pm
image
image
Hello, I was wondering how I would be able to run an app as a different user (preferably without using the Terminal and sudo). I have Matlab and the University's license server requires my account username to be the same as the University's login. So I need Matlab to be run under "userid" instead of my current account.

Thanks for your help!
Cheryl - Jun 15, 2005 - 6:07 pm
image
image
Matthew,

While this may seem like a bit more work, the easiest way to do this is to create a new user.

Go to System Preferences>Accounts. Create a new user and name it "userid".

Make sure MatLab is installed in the Applications folder.

Now Log out of your current account, log into the new account and set it up to get to your university's server.

You may want to make sure all the documents that you need are in the current user's Public folder>Drop Box so you can access them.

--------
Let me know if you need further assistance and thank you for using MacOSX.com !

Cheryl
mathiek - Jun 15, 2005 - 6:59 pm
image
image
Well see, I already have the user for that account, but I don't want to be constantly switching back and forth to run Matlab and then switch back to do day to day things. Is there some sort of AppleScript that allows to run an application as a different user (with authentication, of course)?
Cheryl - Jun 15, 2005 - 7:46 pm
image
image
Matthew,

I know of no script that will do what you want.

You could create the new user, make it an admin account, then just use that as your everyday account to log in with.

Depending on what OS X version you have will depend on how to make an account an admin account.

--------
Let me know if you need further assistance and thank you for using MacOSX.com !

Cheryl
Cheryl - Jun 15, 2005 - 7:53 pm
image
image
Matthew,

How are you logging into your university server? I wanted to learn more about Metlab, but found one on predicting weather, and another with multimedia projects through the Michigan State University. Which one are you on?

I am trying to figure out if there is a work around for your particular problem.

--------
Let me know if you need further assistance and thank you for using MacOSX.com !

Cheryl
mathiek - Jun 15, 2005 - 7:57 pm
image
image
Well, If it doesn't look like this is a viable option, is there a way to export my settings from this user to my new user? I tried setup and export wizards, but they seem to only work for one computer to another. I want to preserve my dock, desktop, system prefs, etc.
Cheryl - Jun 15, 2005 - 8:05 pm
image
image
Matthew,

I need to know what version OS X you are using. Then I can give you instructions on how to move over your preferences, Mail , etc.

--------
Let me know if you need further assistance and thank you for using MacOSX.com !

Cheryl
mathiek - Jun 15, 2005 - 9:59 pm
image
image
Oops, sorry about that. I am running 10.4.1!
Cheryl - Jun 16, 2005 - 7:20 am
image
image
Matthew,

I thought of an easy way, but time consuming.

First - while logged into your current account, Create a new folder on the hard drive - just sitting alone. Name it saved.

Now open the new saved folder and place it on the left of your screen.
Now go to the File menu and select New Finder Window. Place that to the right of the screen.

In the window at the right go to your Home folder. Move all the files from inside your Home folder to the left - in the saved folder.

Go to System Preferences>Accounts. If the lock at the bottom left is locked, click on it. You will be asked for your password. Now click on the 'userid' account name, and in the Password section at the bottom, click on Allow user to Administer this computer.

Now check the Log In Options. You want to make sure Automatic log in is unchecked and display list of users is selected.

Close the windows, log out and then log into the 'userid' user.

Now, you need two finder windows open again. The Saved folder and your Home folder. Compare the two, moving from the Saved to Home. The Library folder has all your settings and preferences. You may want to compare Music, photos, and documents moving over the files from Saved to Home that is not duplicated.

For the Library folder, open the Home Library, select all, then trash it. Now in Saved>Library select all and move it to the Home Library folder.

Now you need to restart the computer, and log in to Userid. Empty the trash. Go to Applications>Utilities and select Disk Utility. Click on the second icon at the top left, then Repair Permissions.

Now if you wish, you can delete the original user account.

--------
Let me know if you need further assistance and thank you for using MacOSX.com !

Cheryl
Cheryl - Jun 16, 2005 - 7:27 am
image
image
Matthew,

You can also use the method shown here:

http://docs.info.apple.com/article.h...en/mh1061.html

But you must make sure Userid is an administrator.

--------
Let me know if you need further assistance and thank you for using MacOSX.com !

Cheryl

IF THIS IS YOUR QUESTION AND YOU WISH TO RESPOND, LOGIN HERE FIRST.


Search Engine Friendly URLs by vBSEO 3.1.0