Repairing the permissions of a home folder in Lion is a complicated procedure. I don’t know of a simpler one that always works.
Back up all data now. Before proceeding, you must be sure you can restore your system to its present state
Launch the Terminal application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Terminal in the page that opens.
Drag or copy — do not type — the following line into the Terminal window, then press return:
chmod -R -N ~
The command will take a noticeable amount of time to run. When a new line ending in a dollar sign ($) appears below what you entered, it’s done. You may see a few error messages about an “invalid argument” while the command is running. You can ignore those. If you get an error message with the words “Permission denied,” enter this:
You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up.
Next, boot from your recovery partition by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
When the recovery desktop appears, select Utilities ▹ Terminal from the menu bar.
In the Terminal window, enter “resetpassword” (without the quotes) and press return. A Reset Password window opens. You’re not going to reset the password.
Select your boot volume if not already selected.
Select your username from the menu labeled Select the user account if not already selected.
Under Reset Home Directory Permissions and ACLs, click the Reset button.
Select ▹ Restart from the menu bar.
I have a sneaking suspicion I might have a rather simpler answer, by sheer accident. Try creating a new user (Admin) and see if you can recreate the problem. If you can't, you've solved one issue and, in my experience, created another; a user with no files, nothing... I have the same problem so if someone can help with this bit I'd be grateful!
How do I know this? This is the short version... In fairly quick succession I upgraded Filemaker to v12 and OS X from Leopard via Snow Leopard to Lion. Filemaker told me, wrongly, that v12 would only work with Lion (actually it works with Snow Leopard I later found), so I thought as I'm about to lose MobileMe anyway, the writing's on the wall, so get Lion.
Having done all this and converted Filemaker files to the latest version I then found that Filemaker's "send mail" script didn't work - it sends via your default email client or direct SMTP, as you prefer. It wouldn't communicate with Mail. I tried it in v11. Nothing. In v12 at least I got an opaque error message saying:
"Some of the files that are needed are either damaged or have not been installed. Please run the installer to correct this problem."
Which installer? No idea.
Before reinstalling either Filemaker or Lion I put the same Filemaker files on an old iBook G4 (PowerPC, not Intel). The script worked perfectly, ergo it's not Filemaker at fault. I reinstalled Lion. No difference.
I could find nothing on this issue anywhere. Finally I called Filemaker support and having gone through everything either of us could think of the lady I spoke to said, "Have you tried from another user?" No, there's only me.
I created a new (Admin) user, logged out, in, opened Filemaker, ran the script, Mail sprang to life. Solved.
So some preference or permission file somewhere is corrupted (yes, I repaired permissions, made no difference), but which? Now I have a new user who has no access to anything but operates Filemaker's send mail script perfectly!
By the time I got this far Filemaker's support had gone home, so I've no idea what happens next until tomorrow when I'll call again. In the meatime if anyone knows how to resolve the different user problems I'd be delighted to know.
Hope this solves your problem guys. Try it. Good luck.
This works -- other user account works fine.
I haven't tried Linc's long complicated solution yet. But I tried every other one in this thread, and nothing else worked. Repairing permissions via Disk Utility included.
And I have the most standard specs ever: naw Macbook, latest Lion with all updates, hardly anything additional tweaked or installed.