Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Lion: problems with resume, reboot, move, delete ...

Some of the Lion problems I've been having (on 2 laptops: an older "Pro" and a new "Air"):

-can't delete some files without password;

-can't move some files or folders, only copy;

-opening a program by clicking a data file also opens other data files from previous uses (not necessarily the most recent use);

-rebooting opens several programs, always the same ones with the same data files (not necessarily from the most recent uses);

-opening Safari opens several tabs always with the same sites;

-Safari's History is gone, except for 2011 items, and new items are not being recorded;

-Keychain issues, often needing repair;

-MobileMe syncing issues.


Why and how do all of these things happen? How are they related to each other? Why should I have to tinker like this? And what would happen if I weren't geeky? (I've left my iMac on Snow Leopard, which is wonderful.)


Things are coming under control, but I have pulled all sorts of information from a variety of Web sources, none of which I found all in one place; hence this compendium. The exact sequence of what I did is lost, and what factors were the ones which worked I do not know. (Very time-consuming …) Comments welcome!


Should I just have re-installed Lion on the laptops?


====


Permissions:

A lot of these problems seem related to obscure permissions.


Here is a Terminal command which clears all ACLs, at least in the "Home" folder.


chmod -R -N ./*


(But it generated this message on the MBPro:

chmod: Failed to clear ACL on file abc.numbers: Operation not permitted

chmod: Failed to clear ACL on file Commands: Invalid argument

chmod: Failed to clear ACL on file Notification: Invalid argument

chmod: Failed to clear ACL on file ubiquity.socket: Invalid argument

chmod: Failed to clear ACL on file Saved Application State: Operation not permitted


… partly perhaps because I had "locked" the abc.numbers file and the Saved Application State folder. I doubt if these things matter.)


Reboot while holding Cmd-R: this is something like "re-install" mode; when it opens, instead of choosing one of the options presented, open Terminal from the Utilities menu, and type "resetpassword". A program opens but don't reset the passwords, but rather reset all of the permissions, including ACLs, using the button at the lower right. Close it, close Terminal, and the reboot normally.


Safari:

File menu, Empty Cache and Reset Safari


Library (from Home folder, requires special steps to get to it in Lion, e.g. hold the Option key when at the Finder "Go" menu):

Library/Preferences: moved then later deleted several plist files for offending programs, which I then had to reconfigure (e.g. Safari: reconfigure Toolbar, go through Safari Preferences …) -(they will all reappear instantly in some "default" state) -trying to delete the plist.lockfile as well caused problems - Trash wouldn't "empty" it ("in use"), but doesn't seem to matter.

Library/Preferences, ByHost: see below

Library/Saved States: see below


ByHost:

Some users opine to go to ByHost, close all apps, then "lock" (using the "Get Info" feature) the file com.apple.loginwindow{…}.plist. See this "discussion: https://discussions.apple.com/thread/3630370?answerId=17213577022#17213577022


Saved States:

Some users say to delete "Library/Saved Application State" files (folders) before doing the above (https://discussions.apple.com/thread/3710991?answerId=17499355022#17499355022 and http://applehelpwriter.com/2011/09/13/turn-off-resume-the-definitive-solution/). Then "lock" the "Saved Application State" folder. There may be some problems getting it to stay locked(?).


But I moved several of the "Saved Application State" folders and I forget just what, but one computer seemed unhappy afterwards, the other fine. On the unhappy one, I replaced them (but not yet having locked the overall folder), and deleted some of the files inside the individual folders, like com.apple.TextEdit.savedState. (I suspect this paragraph is unimportant, but cannot be sure.)


Sharing: remember that the settings under System Preferences, Sharing, also matter. (So do the settings under "Accounts and Users", Guests.)


The "resume open applications feature" on reboot seems weird. If I say "no", I wonder if it wasn't bringing back all of the programs from some distant previous reboot.


Make sure that under System Preference, General, the option to restore on restart is unchecked.


I have learned that Disk Utility's "Repair Permissions" works for quite specific files and doesn't work for the Home folder.

http://support.apple.com/kb/HT1452


Make sure that there aren't numerous "Login" items under System Preference, Users/Accounts.


Changing permissions via the "Get Info" windows, and "applying to enclosed folders" can be a bad idea, especially if applied to something like the Home folder. Apparently it propagates ACLs too(?), although not visible there, and the effects can be undesirable.


Some permissions on "Get Info" panes have two "everyone"s, and the one with "Custom" settings can not be changed nor deleted.


Make sure all systems updates have been done (as usual).


MobileMe sync issues are another story - seems to be settling - perhaps related to "Permissions" issues above …


And what about Preferences, Caches? Anything there that would help with the above problems? What about the "root"(?) Library?


Some of the above tasks can be accomplished by 3rd-party software, but I'm getting there without using anything other than native Mac OS X Lion tools.


====


Anyway, as said, it's all settling down.


Comments/corrections most welcome.


Charles

MBPro, 2007 Dec. -24" iMac 2.93 GHZ, 4MB RAM, 2009 June - iPhone 3G, 8 GB RAM, 2, Mac OS X (10.6.5), Airport Extreme Base Station, USB printer, wireless printer

Posted on Feb 5, 2012 8:38 AM

Reply
Question marked as Best reply

Posted on Feb 5, 2012 10:35 AM

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.


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.

9 replies
Question marked as Best reply

Feb 5, 2012 10:35 AM in response to ctlow

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.


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.

Jun 11, 2012 5:09 AM in response to Linc Davis

Linc,


I just migrated from a 2008 MBP (Snow Leopard) to a 2010 MBP running Lion. Somehow during the transfer to the new machine, all my file permissions got messed up (mostly all my server-related files in the Sites folder).


I rebooted to the backup, pulled up the Reset Password screen, and did the Reset Home Directory Permissions and ACLs. However, the reset never completed. I thought at first that it just needed to take a long time because there where a lot of files affected, but then I let it run overnight, and it still didn't finish after 8 hours.


Any thoughts?

Jun 21, 2012 1:06 PM in response to Shootist007

Yep. Originally it was red, then red and yellow, then blue and now has a blue and yellow dustjacket around a blue book. 27 years, about to be 28. I use my Macs to publish related material, such as this and this.


I have AppleCare on this one and, when I get time later today, I will open a case and what they cannot resolve I will repost here. I don't hink Apple will revert, but they should at least make those kinds of major changes options rather than force us to lose work time to have to learn the re-throught.

Lion: problems with resume, reboot, move, delete ...

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.