How to regain control of Trash can permissions? Trash deletes automatically

Discussion in 'Mac Basics and Help' started by stu3ufc, Jan 30, 2010.

  1. stu3ufc macrumors member

    Joined:
    Mar 28, 2008
    #1
    I dont know where its come from but every time i try and delete something a message pops up that it will be automatically deleted and not placed into the trash can

    I am the administrator and it says my permissions are to read and write in my "Home"

    when i use the "trash can" code in terminal it says permission/access denied

    help me please

    is there a code or anything i can do to regain permission as adminstrator
     
  2. BlueRevolution macrumors 603

    BlueRevolution

    Joined:
    Jul 26, 2004
    Location:
    Montreal, QC
  3. stu3ufc thread starter macrumors member

    Joined:
    Mar 28, 2008
    #3
    sorry dude. I found a tip somewhere to type a code like this to type in terminal ":/~ Trash" or something similar and it told me access denied/ dont have permission

    any suggestions on how to change my trash settings back
     
  4. BlueRevolution macrumors 603

    BlueRevolution

    Joined:
    Jul 26, 2004
    Location:
    Montreal, QC
    #4
    What was the code exactly? You can see your command history by repeatedly pressing the up arrow key in Terminal.

    Anyway, try copying and pasting the following command into Terminal:

    sudo rm -r /.Trashes ~/.Trash

    Don't try to type it in, since a typo in this command can delete every file on your hard drive.
     
  5. stu3ufc thread starter macrumors member

    Joined:
    Mar 28, 2008
    #5
    No such file or directory


    is what i get. so i might have accidently deleted my trash directory or something

    what now ?? thanks for your help
     
  6. BlueRevolution macrumors 603

    BlueRevolution

    Joined:
    Jul 26, 2004
    Location:
    Montreal, QC
    #6
    Well, OS X should re-create the directories automatically, but you could try running the following:

    mkdir ~/.Trash
    chmod 700 ~/.Trash
    sudo mkdir /.Trashes
    sudo chown root:staff /.Trashes
    sudo chmod 1333 /.Trashes
     
  7. stu3ufc thread starter macrumors member

    Joined:
    Mar 28, 2008
    #7
    i followed it and then it asks for my password and terminal wont let me enter it??

    i click the grey box and it wont type in
     
  8. BlueRevolution macrumors 603

    BlueRevolution

    Joined:
    Jul 26, 2004
    Location:
    Montreal, QC
    #8
    Just because the cursor isn't moving doesn't mean it isn't registering your password as you type.
     
  9. stu3ufc thread starter macrumors member

    Joined:
    Mar 28, 2008
    #9
    doesnt seem to do anything

    Last login: Sun Jan 31 02:33:57 on ttys000
    Macintosh:~ stuartjones$ mkdir ~/.Trash
    mkdir: /Users/stuartjones/.Trash: File exists
    Macintosh:~ stuartjones$ chmod 700 ~/.Trash
    Macintosh:~ stuartjones$ sudo mkdir /.Trashes
    Password:
    Macintosh:~ stuartjones$ sudo chown root:staff /.Trashes
    Macintosh:~ stuartjones$ sudo chmod 1333 /.Trashes
    Macintosh:~ stuartjones$
     
  10. BlueRevolution macrumors 603

    BlueRevolution

    Joined:
    Jul 26, 2004
    Location:
    Montreal, QC
    #10
    *nix commands don't usually give feedback unless they encounter an error.

    Does your trash work properly now?
     
  11. stu3ufc thread starter macrumors member

    Joined:
    Mar 28, 2008
    #11
    no sorry

    still trying to automatically delete
     
  12. yamabushi macrumors 65816

    yamabushi

    Joined:
    Oct 6, 2003
    #12
    Is your hard drive full? That can cause the trash to empty itself.
     

Share This Page