Change MAC OS X Lion User shortname or home directory

First you will need to enable theroot user, to do this following the instuctions in my post http://blogs.barlow.uk.net/techblog/enable-root-user-on-mac-os-x-lion/

To change the user shortname and or the home directory of a user in OS X Lion use the following instructions:

  • Logon as root
  • Using Finder, browse to the /Users directory
  • Rename the home directory (highlight it, and press the Return key.  Now enter the new name)
  • Now open System Preferences
  • Select Users and Group
  • Unlock the padlock
  • Select the user and right click
  • Select Advanced options
  • If you want to change the shortname, edit the Account Name field
  • Now Change the Home Directory field, to point to your renamed folder.