Resolved Permissions / Ownership problem

Discussion in 'OS X Mountain Lion (10.8)' started by Loa, Sep 7, 2012.

  1. Loa, Sep 7, 2012
    Last edited: Sep 7, 2012

    Loa macrumors 65816

    Loa

    Joined:
    May 5, 2003
    Location:
    Québec
    #1
    Hello,

    Simple explanation of the problem: even though the permissions for the files on my desktop are set to (my user) Read/Write, if I try to delete one, I'm asked to authenticate.

    Repair permissions has no effect since it's my own files.

    Longer explanation: my entire home folder used to be on a different drive than the boot disk. I have now a bigger boot disk and have migrated the home folder back to the boot disk (using the sys prefs, Users, advanced settings). Everything works fine and all my preferences for every app works normally.

    Any ideas?

    Thanks

    Loa
     
  2. talmy macrumors 601

    talmy

    Joined:
    Oct 26, 2009
    Location:
    Oregon
    #2
    You can fix the permissions and ownership yourself. Run Terminal, your user name will be right before the $ in the prompt. Let's assume it is "loa". Now type the commands:
    Code:
    sudo chown loa ../loa
    and then
    Code:
    chown -R loa *
    and it will correct the ownership of all the files.

    Hopefully that will correct the permission problems as well, once you own all your files. There is also a command to change permissions, but it needs to be used carefully otherwise you end up messing up the permissions for the Public folder.
     
  3. Loa thread starter macrumors 65816

    Loa

    Joined:
    May 5, 2003
    Location:
    Québec
    #3
    Hello,

    Thanks talmy. Just before reading your solution, I had found another from Apple, about reseting the ACLs. Since this solution worked I can't really test yours, but I'll keep a copy of it for later, as it's much simpler.

    Thanks

    Loa

    P.S. Here's Apple solution:

    Turn on the Mac whilst holding down cmd + R. You can let go once you see a spinning dial. You will then see the ”Mac OS X Utilities” screen.
    On the top menu, click Utilities, then click Terminal.
    Type resetpassword and press Enter.
    Click on your main hard drive.
    In the dropdown box under “Select the user account” make sure to select your username.
    Underneath where it says “Reset Home Directory Permissions and ACLs”, click the Reset button.
    Press cmd + Q to quit the Reset Password application.
    Press cmd + Q again to quit the Terminal.
    Press cmd + Q one more time and click Restart.
    Click Mac OS X Utilities in the top left of the screen and click the Restart button.
     

Share This Page