Mac os x lion benutzer wechseln

Ok, maybe it was too obvious: My users had the same name but different user IDs. I wouldn't have been surprised when that would've happened on my linux or BSD boxes - but with Apple products? No way, I thought. But I was wrong. Now, my problem was: While most of the information is still true with Snow Leopard, the process and some of the commands used should be modified slightly. There may be a problem with this procedure when FileVault 2 full disk encryption is enabled according to javadoug's comment below.

First of all, don't do this while you are logged in as the user whose uid you want to change. Seriously, don't do that. The imho best way is to use " sudo ". With sudo you have at least two options:. Another clean way of doing this is as the root user. Afterwards, log in as root as decribed in Apple's article. As noted in the article I referred to earlier, the ownership of the user's files has to be changed on every filesystem the user had written to.

Remember that you have to check the ownership of files on every filesystem that the user had written to. But that was not all. Mac OS X has some special files and folders that have the old uid as part of their names. These include on my Mac at time of writing, ymmv:. For every of the above you have to do something like you may have a look at Guido's tip below - thanks Guido!

Finder creates folders like these on every local filesystem you move things to Trash from. Therefore, you have to check every filesystem for the existence of a folder named. If you don't do this, you may possibly end up in wasted space but I haven't checked this. If you want to check if there are remaining files or directories that have the old uid in their name, you can, again, use find thanks Tim!

As Thomas stated below, it's wise to reboot your machine after this procedure you're absolutely right Thomas.

Change a user's User ID on Mac OS X (10.6 - 10.12)

Otherwise strange things happen if you try to log in with the changed user id. For further information please consult the original article I took this information from. Skip to navigation Personal tools Log in. Search Site only in current section.

How to Change an Apple ID & iCloud Account in Mac OS X

Advanced Search…. You are here: Posted by Roman Permalink filed under: Mac OS X. Ok, let's get going: Prequisites First of all, don't do this while you are logged in as the user whose uid you want to change. With sudo you have at least two options: You could prefix "sudo" to each of the commands given below but read the comments below as you will have some problems. And you can — preferably — temporarily turn your shell into a "root shell" which you have to do only once: Change ownership of the user's files As noted in the article I referred to earlier, the ownership of the user's files has to be changed on every filesystem the user had written to.

Rename special files and folders But that was not all.

These include on my Mac at time of writing, ymmv: Further information For further information please consult the original article I took this information from. Update This is still working on Update I recently used this procedure on OS X Worked as expected. Update Still works with Sierra Filed under: Anonymous says: Jan 20, Thanks so much for this guide! Thanks again! Feb 02, I'm glad it helped.

You are absolutely right, Aaron. I've updated the guide. Thanks for your hint! Jan 26, I used sudo rather than root for this process. With sudo, it appeared impossible to enter some directories where there was a file needing renaming. In this case, do a "sudo mv" but you'll have to put the directory name in as well. That seemed to work. In the case of launchd. A useful guide - thanks! Personally, as an old Linux guy I prefer working as root. But for this guide I think it's best to use the root user over the sudo approach because using sudo implies that you work as a different non-privileged user what may but doesn't necessarily have to be the case.

Using the root user, you don't run into the mentioned problems entering folders that you don't have access to.

In the end, using sudo or the root user is mostly just a matter of preference. It turned out that there were too many files and folders which carried in their names without being related to the uid anyhow but only a few to none I don't remember relevant ones that should have been renamed. So I did it exactly as you suggest. I've updated the how-to accordingly. Thanks for your hint, Tim! Great discussion guys. I didn't mention it earlier, but I used sudo for this entire process as well. Also, with sudo, there's no chance I'll forget to disable root when I'm done.

First rename the home folder

I think Roman's exactly correct. It's usually a matter of personal preference. Feb 03, Yet another sudo discussion? But sometimes I tend to use the root account, especially when I have to use lots of admin commands - or write some how-to that should be easy to use.

  • Change a user's User ID on Mac OS X ( - ) —
  • How to Change the Short Name of a User Account in Mac OS X!
  • how to disable automatic wifi connection mac.
  • Changing User Short Names & Home Directory Names: The Apple Way.
  • Coolest Guides On The Planet.

Another option, of course, is to use "sudo -s" or "sudo -i". This will turn your shell into a "root shell" so you don't need to enable the root user or hack in "sudo" again and again which can be quite annoying. May 04, What modifications are needed for I have tested the above info in Snow, however I have a few users in I'm sorry but I can't test that because I don't have a machine running Tiger any more. Sep 02, Excellent article, thanks! I just used this on Just wanted to say thanks!

The procedure worked just as described. The only thing I'd add is to reboot after all the chown-ing and mv-ing is done. I logged into one of the affected accounts immediately after moving everything around and everything was wonky no Desktop, no Finder, etc. I'm guessing some processes got confused by the changed UIDs and needed a fresh start. Change ownership of the user's files', I think than it should be better do: Thanks for this, very handy.

One thing to add is the chown call should be chown -h or if you have any symlinks then they end up beloning to the old userid. I also changed the gid PrimaryGroupID to match and did the same thing for the chgrp call. Oct 31, For some reason, chown wasn't in my path and couldn't find it since the locatedb wasn't properly loaded. Took me a while to find it but wanted to make sure others could find it easily.

Adding it to delicious now! Nov 03, Hi all, Anyone can help me with this? Nov 18, In Bash, instead of: This one might be a little more complete. Also changes owner of symbolic links. Also uses xargs to execute the chown command as few times as possible. Note I just did this on Lion. Roman says: May 23, Finally, I've updated the guide according to your hint. Thank you! Jan 04, It's very important to use "chown -h" instead of "chown". The link target may have a completely different uid.

Enable or disable the root user

Right, I've changed the commands. Jan 21, January 25, at October 29, at 5: CW says: January 28, at 3: Bree says: February 21, at John F. March 4, at 3: Kent says: March 4, at 4: March 4, at 6: Evan says: March 18, at 2: GColes says: March 31, at Tony says: April 20, at David says: May 6, at 5: August 8, at 2: August 16, at 2: Tricia Hanna says: October 16, at 9: November 27, at Debbie says: January 20, at 4: Serge Hogue says: March 9, at 7: April 16, at 9: Ang says: June 17, at 5: JL says: September 22, at 2: Roselle says: July 13, at 1: Ricky says: September 26, at March 4, at March 4, at 1: Leave a Reply Click here to cancel reply.

Pangu Jailbreak for iOS 8. Shop on Amazon. Subscribe to OSXDaily. Follow OSXDaily. News - Beta 3 of MacOS Nakilon Nakilon 1 2 Fralec My answer is different.

Change the User Short Name Only

I don't know what is the "Store" he's is saying about. Here are the detailed instructions how to do that. Changing ownership of a used Mac I highly recommend the total wipe procedure to remove any possible software remains and modifications from previous user that you do not want. This will let you change the locked Apple ID. Krishna Krishna 11 1. Sign up or log in Sign up using Google.

Change the name of your macOS user account and home folder

Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown.

Your Answer

Post Your Answer Discard By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service , privacy policy and cookie policy , and that your continued use of the website is subject to these policies. Linked 0.

go site admin