9 Replies Latest reply: Dec 3, 2013 8:04 PM by IamArunNirmal
IamArunNirmal Level 1 Level 1 (0 points)

i am not able to open documents in preview.Whenever i open any pdf,there comes "you don't have permission to open it,change it in file>get info from finder".

what should i do ?


MacBook Pro with Retina display, OS X Mountain Lion (10.8.2)
  • 1. Re: cannot open documents in preview
    a brody Level 9 Level 9 (63,295 points)

    Reboot with the shift key.  Some application has probably hijacked it.

  • 2. Re: cannot open documents in preview
    IamArunNirmal Level 1 Level 1 (0 points)

    can you elaborate on what i should do ?

  • 3. Re: cannot open documents in preview
    a brody Level 9 Level 9 (63,295 points)

    If booting with the shift key doesn't help, where is the file located on the hard drive?

    Are you the administrative user?

  • 4. Re: cannot open documents in preview
    IamArunNirmal Level 1 Level 1 (0 points)

    actually whatever pdf i download from the net is not opening !

  • 5. Re: cannot open documents in preview
    a brody Level 9 Level 9 (63,295 points)

    Are you an administrative user?

     

    If it is your own computer, and you bought it new, you are one by default.

  • 6. Re: cannot open documents in preview
    Linc Davis Level 10 Level 10 (118,130 points)

    Launch the Console 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 Console in the icon grid.

     

    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select

    View Show Log List

    from the menu bar.

     

    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).

    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.

    Please do not indiscriminately dump thousands of lines from the log into this discussion.

    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • 7. Re: cannot open documents in preview
    IamArunNirmal Level 1 Level 1 (0 points)

    04/12/13 8:42:01.068 am Mail[167]: CGSCopyDisplayUUID: Invalid display 0x1b400043

    04/12/13 8:42:13.453 am Preview[14121]: CGSCopyDisplayUUID: Invalid display 0x1b400043

    04/12/13 8:42:13.473 am sandboxd[41162]: ([14121]) Preview(14121) deny file-read-data /private/var/folders/98/k1btz2h524l60xqr0cn5ht740000gn/T/WebKitPDFs-Ss45CP/b1Sa eV-index.php.pdf

    04/12/13 8:42:13.493 am Preview[14121]: PVPDFPageContainer initWithURL:file:///private/var/folders/98/k1btz2h524l60xqr0cn5ht740000gn/T/Web KitPDFs-Ss45CP/b1SaeV-index.php.pdf failed, error = Error Domain=NSCocoaErrorDomain Code=257 "The file “b1SaeV-index.php.pdf” couldn’t be opened because you don’t have permission to view it." UserInfo=0x7f80ff6d3bb0 {NSFilePath=/private/var/folders/98/k1btz2h524l60xqr0cn5ht740000gn/T/WebKitPDFs -Ss45CP/b1SaeV-index.php.pdf, NSUnderlyingError=0x7f80ff422ab0 "The operation couldn’t be completed. Operation not permitted"}

    04/12/13 8:42:13.498 am sandboxd[41162]: ([14121]) Preview(14121) deny file-read-data /private/var/folders/98/k1btz2h524l60xqr0cn5ht740000gn/T/WebKitPDFs-Ss45CP/b1Sa eV-index.php.pdf

    04/12/13 8:42:13.522 am sandboxd[41162]: ([14121]) Preview(14121) deny file-read-xattr /private/var/folders/98/k1btz2h524l60xqr0cn5ht740000gn/T/WebKitPDFs-Ss45CP/b1Sa eV-index.php.pdf

    04/12/13 8:42:13.547 am sandboxd[41162]: ([14121]) Preview(14121) deny file-write-data /private/var/folders/98/k1btz2h524l60xqr0cn5ht740000gn/T/WebKitPDFs-Ss45CP/b1Sa eV-index.php.pdf

    04/12/13 8:42:13.571 am sandboxd[41162]: ([14121]) Preview(14121) deny file-read-data /private/var/folders/98/k1btz2h524l60xqr0cn5ht740000gn/T/WebKitPDFs-Ss45CP/b1Sa eV-index.php.pdf

    04/12/13 8:42:13.595 am sandboxd[41162]: ([14121]) Preview(14121) deny file-read-data /private/var/folders/98/k1btz2h524l60xqr0cn5ht740000gn/T/WebKitPDFs-Ss45CP/b1Sa eV-index.php.pdf

  • 8. Re: cannot open documents in preview
    Linc Davis Level 10 Level 10 (118,130 points)

    Back up all data.

    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.

    I've tested these instructions only with the Safari web browser. If you use another browser, they may not work as described.

    Step 1

    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box markedAllow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.

    Triple-click anywhere in the following line on this page to select it:

    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -R $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null

     

    Copy the selected text to the Clipboard by pressing the key combination command-C.

    Launch the Terminal application in the same way you launched Console. Paste into the Terminal window (command-V). I've tested these instructions only with the Safari web browser. If you use  another browser, you may have to press the return key after pasting.

    You'll be prompted for your login password. Nothing will be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.

    The command may take a few minutes to run, or perhaps longer if you have literally millions of files in your home folder. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.

    Step 2 (optional)

    Take this step only if you have trouble with Step 1 or if it doesn't solve the problem.

    Boot into Recovery. When the OS X Utilities screen appears, select

    Utilities Terminal

    from the menu bar. A Terminal window will open.

    In the Terminal window, type this:

    res

    Press the tab key. The partial command you typed will automatically be completed to this:

    resetpassword

    Press return. A Reset Password window will open. You’re not going to reset a password.

    Select your boot volume ("Macintosh HD," unless you gave it a different name) 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. Re: cannot open documents in preview
    IamArunNirmal Level 1 Level 1 (0 points)

    thanks a lot sir,but my problem got solved just by restarting the mac