Related pages:
ChangeUsername
RenameHomeFolder

You are unable to do anything on your Mac OSX because you are not an admin user, and there are no others who are admin users either.
CategoryMacOsx

This has happened to me several times as a result of messing with usernames or userfolders. It is not a problem the casual user will encounter. I would call it a bug in the OS.

Solution: Create a new uniquely named admin user. When that new account is created it will have "admin" status, and you can set your old account to "admin" user too. The easiest way to do this is to boot into single-user mode, mount the filesystem and delete the file /var/db/.AppleSetupDone, but it can also be done from Firewire. This procedure has no negative side effects. When you follow the instructions, your Mac will think you are starting it for the first time, so you need to re-enter all the registration stuff.

Start up your Mac in "Single User Mode", which means you will have no access to any mouse or windows. To do this, shut down your Mac and restart it, but while you start hold down the "Apple" key AND the "s" key simultaneously. You will see a featureless window with tiny letters. This is "Single User Mode".

Now type:

mount -uw /

and press «return».
This needs to be exact with all the appropriate spaces. You may want to print out these instructions if you only have one Mac there.

Now the filesystem is mounted and you can delete a file. Type:

rm /var/db/.AppleSetupDone

and press <return>. The offending file will delete.

Now type:

reboot

and <return> and your Mac will reboot into the original registration screen.

Be sure to create a new user with a unique name. I have heard if you use an existing username it will overwrite your old user account. When you login, Open the Accounts preference panel and enable your old username as admin user. Now logout and relogin as your old user.

Comments

Smiley: