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

Preview(610) deny file-write-create issue

I was reviewing a document in Preview (a PDF that I downloaded from the internet) and added annotations with notes and rectangles - frequently using cmd-S to save versions (I could see the older versions ising "Revert document..." After I closed and re-opened the document (and reverted to my home time zone (I did the work on a plane) all but my first edits were gone. In addition, I keep getting asked if I want to open a file downloaded from the Internet. Very odd. I went into Console and saw a series if items:


2/25/12 12:06:58.628 PM sandboxd: ([610]) Preview(610) deny file-write-create /Users/paul/Library/Preferences/ByHost/.GlobalPreferences.4303C8C3-A534-54DA-BF D2-08D9A393F8FD.plist.sb-d2a9a742-oaMVR0

2/25/12 12:07:29.047 PM sandboxd: ([610]) Preview(610) deny file-write-create /Users/paul/Library/Preferences/ByHost/.GlobalPreferences.4303C8C3-A534-54DA-BF D2-08D9A393F8FD.plist.sb-d2a9a742-C7m4lN

2/25/12 12:07:59.467 PM sandboxd: ([610]) Preview(610) deny file-write-create /Users/paul/Library/Preferences/ByHost/.GlobalPreferences.4303C8C3-A534-54DA-BF D2-08D9A393F8FD.plist.sb-d2a9a742-5n0NJe

2/25/12 12:08:29.914 PM sandboxd: ([610]) Preview(610) deny file-write-create /Users/paul/Library/Preferences/ByHost/.GlobalPreferences.4303C8C3-A534-54DA-BF D2-08D9A393F8FD.plist.sb-d2a9a742-saU9Th

2/25/12 12:09:00.355 PM sandboxd: ([610]) Preview(610) deny file-write-create /Users/paul/Library/Preferences/ByHost/.GlobalPreferences.4303C8C3-A534-54DA-BF D2-08D9A393F8FD.plist.sb-d2a9a742-OeeJNl

2/25/12 12:09:30.782 PM sandboxd: ([610]) Preview(610) deny file-write-create /Users/paul/Library/Preferences/ByHost/.GlobalPreferences.4303C8C3-A534-54DA-BF D2-08D9A393F8FD.plist.sb-d2a9a742-G67ylo

2/25/12 12:10:01.203 PM sandboxd: ([610]) Preview(610) deny file-write-create /Users/paul/Library/Preferences/ByHost/.GlobalPreferences.4303C8C3-A534-54DA-BF D2-08D9A393F8FD.plist.sb-d2a9a742-C2pDW5

2/25/12 12:10:31.642 PM sandboxd: ([610]) Preview(610) deny file-write-create /Users/paul/Library/Preferences/ByHost/.GlobalPreferences.4303C8C3-A534-54DA-BF D2-08D9A393F8FD.plist.sb-d2a9a742-ewnB2Q

2/25/12 12:11:02.066 PM sandboxd: ([610]) Preview(610) deny file-write-create /Users/paul/Library/Preferences/ByHost/.GlobalPreferences.4303C8C3-A534-54DA-BF D2-08D9A393F8FD.plist.sb-d2a9a742-KdQbPR

2/25/12 12:11:32.492 PM sandboxd: ([610]) Preview(610) deny file-write-create /Users/paul/Library/Preferences/ByHost/.GlobalPreferences.4303C8C3-A534-54DA-BF D2-08D9A393F8FD.plist.sb-d2a9a742-9madk1

2/25/12 12:12:02.928 PM sandboxd: ([610]) Preview(610) deny file-write-create /Users/paul/Library/Preferences/ByHost/.GlobalPreferences.4303C8C3-A534-54DA-BF D2-08D9A393F8FD.plist.sb-d2a9a742-5z8uop

2/25/12 12:12:33.356 PM sandboxd: ([610]) Preview(610) deny file-write-create /Users/paul/Library/Preferences/ByHost/.GlobalPreferences.4303C8C3-A534-54DA-BF D2-08D9A393F8FD.plist.sb-d2a9a742-tfmgi6

2/25/12 12:13:03.780 PM sandboxd: ([610]) Preview(610) deny file-write-create /Users/paul/Library/Preferences/ByHost/.GlobalPreferences.4303C8C3-A534-54DA-BF D2-08D9A393F8FD.plist.sb-d2a9a742-FbgwGV

2/25/12 12:13:34.201 PM sandboxd: ([610]) Preview(610) deny file-write-create /Users/paul/Library/Preferences/ByHost/.GlobalPreferences.4303C8C3-A534-54DA-BF D2-08D9A393F8FD.plist.sb-d2a9a742-ClcLCU

2/25/12 12:14:04.631 PM sandboxd: ([610]) Preview(610) deny file-write-create /Users/paul/Library/Preferences/ByHost/.GlobalPreferences.4303C8C3-A534-54DA-BF D2-08D9A393F8FD.plist.sb-d2a9a742-nYrhpk



Expanding one of them, I see this:


Preview(610) deny file-write-create /Users/paul/Library/Preferences/ByHost/.GlobalPreferences.4303C8C3-A534-54DA-BF D2-08D9A393F8FD.plist.sb-d2a9a742-Gfz2WE



Process: Preview [610]

Path: /Applications/Preview.app/Contents/MacOS/Preview

Load Address: 0x107587000

Identifier: Preview

Version: ??? (???)

Code Type: X86-64 (Native)

Parent Process: launchd [274]



Date/Time: 2012-02-25 10:14:34.657 -0800

OS Version: Mac OS X Server 10.7.3 (11D50)

Report Version: 7



Backtrace:

0 libsystem_kernel.dylib 0x00007fff8850aad2 __open + 10

1 CoreFoundation 0x00007fff86191b37 -[CFXPreferencesPropertyListSourceSynchronizer writePlistToDisk] + 343

2 CoreFoundation 0x00007fff8615a8e5 -[CFXPreferencesPropertyListSourceSynchronizer synchronizeAlreadyFlocked] + 613

3 CoreFoundation 0x00007fff8615a639 -[CFXPreferencesPropertyListSourceSynchronizer synchronize] + 441

4 CoreFoundation 0x00007fff8619886f __-[CFXPreferencesPropertyListSource synchronizeInBackgroundWithCompletionBlock:]_block_invoke_1 + 111

5 libdispatch.dylib 0x00007fff8c9fc8ba _dispatch_call_block_and_release + 18

6 libdispatch.dylib 0x00007fff8c9fe10a _dispatch_queue_drain + 264

7 libdispatch.dylib 0x00007fff8c9fdf66 _dispatch_queue_invoke + 54

8 libdispatch.dylib 0x00007fff8c9fd760 _dispatch_worker_thread2 + 198

9 libsystem_c.dylib 0x00007fff872273da _pthread_wqthread + 316

10 libsystem_c.dylib 0x00007fff87228b85 start_wqthread + 13



Binary Images:

0x7fff86111000 - 0x7fff862e5fff com.apple.CoreFoundation (6.7.1 - 635.19) <57B77925-9065-38C9-A05B-02F4F9ED007C> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation

0x7fff871d7000 - 0x7fff872b4fef libsystem_c.dylib (763.12.0 - compatibility 1.0.0) <FF69F06E-0904-3C08-A5EF-536FAFFFDC22> /usr/lib/system/libsystem_c.dylib

0x7fff884f4000 - 0x7fff88514fff libsystem_kernel.dylib (1699.23.2 - compatibility 1.0.0) <55377210-60A0-3F33-9D45-B2D19AA91859> /usr/lib/system/libsystem_kernel.dylib

0x7fff8c9fb000 - 0x7fff8ca09fff libdispatch.dylib (187.7.0 - compatibility 1.0.0) <712AAEAC-AD90-37F7-B71F-293FF8AE8723> /usr/lib/system/libdispatch.dylib


Not sure what to do. Have started redoing 3 hours of work saving, closing and reopening. Still get the "Do you want to open a file downloaded from the Internet" but the recent work appears to be there. VERY UNNERVING that so much work could be lost.


I should also mention that my computer defaults to opening PDFs with Adobe Reader but for this one I used command-I to change the default application to Preview since it was so much better at annotating (or so I thought).


Any insight or suggestions? Just tried resetting permissions with Disk Utility and this time it did not ask if I wanted to open a downloaded file.


Paul

Posted on Feb 25, 2012 3:51 PM

Reply
Question marked as Best reply

Posted on Feb 25, 2012 6:14 PM

Repairing the permissions of a home folder in Lion is a complicated procedure. I don’t know of a simpler one that always works.


Launch the Terminal application by entering the first few letters of its name into a Spotlight search. If that doesn’t work, then in the Finder, press the key combination shift-command-U. The application is in the folder that opens.


Drag or copy – do not type – the following line into the Terminal window, then press return:


chmod -R -N ~


If you get an error message about permissions, enter this:


sudo !!


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.


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.

2 replies
Question marked as Best reply

Feb 25, 2012 6:14 PM in response to Paul Kleeberg

Repairing the permissions of a home folder in Lion is a complicated procedure. I don’t know of a simpler one that always works.


Launch the Terminal application by entering the first few letters of its name into a Spotlight search. If that doesn’t work, then in the Finder, press the key combination shift-command-U. The application is in the folder that opens.


Drag or copy – do not type – the following line into the Terminal window, then press return:


chmod -R -N ~


If you get an error message about permissions, enter this:


sudo !!


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.


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.

Feb 26, 2012 9:46 AM in response to Linc Davis

Excellent and clear discription! Thanks so much. I did get an error when I used:


chmod -R -N ~


But I did not think it was important since it was not a permissions error:


ab:~ paul$ chmod -R -N ~

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

ab:~ paul$


The rest worked perfectly. Console no longer shows errors for Preview.


Did scare me, though. Realized how insecure my data on the Mac is.


Thanks again!


Paul

Preview(610) deny file-write-create issue

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