|Page (1) of 1 - 08/21/06||email article||print page|
Short and Sweet: Migrating a Mac OS X ShortnameA few ways to solve the problem
"Does anyone know how to change the user's shortname?" he wanted to know.
There are a couple of ways to go about it. But, before you do this for-real, create a test user, and experiment with that. Change your existing account once you are satisfied with your test.
The GUI Approach
If you don't want to mess with Terminal, and are scared by the command line, here's one way to approach the problem.
- From the Applications folder, choose the Utilities folder.
- Start NetInfo Manager
- Change the value associated with the 'name' property for the given account. Save your changes.
- You need a new instance of the System Preferences application to view your changed NetInfo information. So, close/open a new System Preferences, and go to Accounts under System to confirm your change.
If you're more comfortable at the Mac OS X command line, you may prefer this approach.
First, create a brand-new account with the new short name. You'll need to be root user, so launch NetInfo Manager, authenticate yourself, then enable root user.
- Login as Root.
- Go to the Users directory, and delete the home directory of the new account you just created. Then duplicate the old account's home directory, and rename it to the new shortname.
- Go inside the new home directory, into Library:Keychains, and rename the file with the old shortname to the new shortname.
- Go into Terminal and use the
command, like this:
- newname is your new account shortname
- groupname is the groupname
- Logout as root, and log back in as yourself.
- Disable the root account in NetInfo Manager again.
root# chown -R newname.groupname newname
sudo bash. At least one Mac administrator points out that there's no need to enable root when you can sudo into it.
The Easiest Solution
However, Ronald Cross cautions that this isn't a task you should take on lightly, and you should do so only as a last resort. Apple provides instructions on how to accomplish the task, but, Cross says, their procedure actually isn't complete. Says his Web site, "The best option is to simply learn to live with your present short username. Or, if the account was just created, create a new account with the desired short username and then delete the 'unwanted' account."
If you want to tackle the job anyway, Cross and James Bucanek created a free utility program, ChangeShortName, to automate much of the process.
Esther Schindler has been writing about technology professionally since 1992, and her byline has appeared in dozens of IT publications. She's optimized compilers, owned a computer store, taught corporate training classes, moderated online communities, run computer user groups, and, in her spare time, written a few books. You can reach her at firstname.lastname@example.org.
Related Keywords:mac os x, shortname, short name, administration, migration, operating system
Source:Digital Media Online. All Rights Reserved