Prevent erase a folder ???? how?

Discussion in 'macOS' started by umbilical, Dec 26, 2009.

  1. umbilical macrumors 6502a

    Joined:
    May 3, 2008
    Location:
    FL, USA
    #1
    If I try to delete a folder like MOVIES say "music cant be modified or deleted because is required by mac os x"

    great!!! I need that with a folder that I create, how can make that???, I need that for prevent that folder can be erased.

    help! thanks
     
  2. vansouza macrumors 68000

    vansouza

    Joined:
    Mar 28, 2006
    Location:
    West Plains, MO USA Earth
    #2
    Try creating a folder you can afford to loose and then right click and choose get info... see if you can lock the folder and see if that helps... else Google and search are your friends.
     
  3. Gregg2 macrumors 603

    Joined:
    May 22, 2008
    Location:
    Milwaukee, WI
    #3
    I think that only lets you set Read and Write permissions.
     
  4. umbilical thread starter macrumors 6502a

    Joined:
    May 3, 2008
    Location:
    FL, USA
    #4
    well, works at 50%, he ask if I want put on trash, if put yes, they go to trash... see attachments please
     

    Attached Files:

  5. HLdan macrumors 603

    HLdan

    Joined:
    Aug 22, 2007
    #5
    The reason you can't move this built-in folders to the trash on Mac OS X because they are an integral part of the system as well as being part of your Home folder. If they were to be deleted it could cause instability of the system. Setting your own folder to be prevented won't produce the same exact reaction but it does work and your almost there.

    Once you lock the folder and accept the message to allow it to go into the Trash you won't be able to empty the Trash without another message appearing so it's not easy to accidentally delete a personal folder.
     

    Attached Files:

  6. miles01110 macrumors Core

    miles01110

    Joined:
    Jul 24, 2006
    Location:
    The Ivory Tower (I'm not coming down)
    #6
    Well I just moved my "Movies" folder to the Trash and emptied it. Call me crazy, but I don't think deleting the "Movies" folder is going to cause my system to crash, but here's to hoping.
     
  7. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #7
    The Movies folder, and others, are prevented from being modified or deleted by an Access Control List (ACL).

    To see the list's contents, enter this Terminal command-line:

    Code:
    ls -led ~/Movies
    
    The C functions that work with ACLs are documented here:
    http://developer.apple.com/mac/library/DOCUMENTATION/Darwin/Reference/ManPages/man3/acl.3.html

    The command-line tool that modifies ACLs is chmod:

    http://developer.apple.com/mac/library/DOCUMENTATION/Darwin/Reference/ManPages/man1/chmod.1.html
     
  8. HLdan macrumors 603

    HLdan

    Joined:
    Aug 22, 2007
    #8
    Well, I never said deleting folders out of your Home folder would cause the system to crash, I said it could cause instability. When you download or install movie files the system will be looking for that movie folder to place them in. Well, I'm glad you decided to be the guinea pig, not me. I would've created a second user account and tried that first. Good luck. :p
     
  9. miles01110 macrumors Core

    miles01110

    Joined:
    Jul 24, 2006
    Location:
    The Ivory Tower (I'm not coming down)
    #9
    Hmmm, well I haven't changed my Leopard install since I installed it a couple years ago and my Movies folder was still empty. I'm not going to worry about it.
     
  10. Gregg2 macrumors 603

    Joined:
    May 22, 2008
    Location:
    Milwaukee, WI
    #10
    I think the OS may create a new Movies folder if it ever needs one to put something in it. Actually, I wouldn't be surprised if it created one and left it empty.
     

Share This Page