Protect a folder but not it's sub folders

Hi.
I have a "main" folder that have lots of sub folders.
If I'll delete by mistake the "main" folder ( and trash ) , the sub folders will lost !
How can I protect a folder from mistake deletion but not it's sub folders ?
Not with a password as it seems complicated , just simple solution. ..
The sub folders will be able to accept all changes like delete / modify / rename and all other actions
Thanks.

Add the "group:everyone deny delete" ACL to the main folder. You can still manage to delete it, but will ask for an admin password before doing so.
In Terminal,
chmod +a "group: everyone deny delete" path/to/folder

Similar Messages

  • "Fire-vault protected home folder did not open and needs to be repaired."

    I recently updated my macbook to leopard and after my laptop downloaded system updates, it had to restart but when I came to the login section and tried to login, I get this message:
    "Fire-vault protected home folder did not open and needs to be repaired. Click OK to repair the folder and continue logging in. Click Cancel login to log in as a different user."
    I don't have a different user so I clicked OK, but then I get this message:
    "You are unable to log in to the user account "Kyle" at this time. Logging in to the account failed because an error occured."
    So now I can't login and I'm a college student and need important files on my computer. Someone please help! I have class tomorrow!

    Sorry, I re-read your question and realize from the title you had file vault on upgraded and now it won't let you into the home folder. This is a known issue and I hope Apple produce a fix. I encountered this problem but fortunately I took a bootable image backup to a firewire drive. I booted off that as root and then opened the sparese image which is the home folder. This gave warnings but let me copy important documents to safety and also export address book and safari book marks.
    If you do not have a backup I am very sorry to say you may have lost those files. It is worth backing up important college work, even if it is just to CD. I hope Apple come up with a fix for this because many of us hit this problem. Part of the reason for owning a Mac is you do not expect to have these issues. It made me feel like I had just installed XP!

  • I am trying to delete songs from itune 11 library and i want it to delete the song from my hard drive as well.  All my songs are in the music folder but not in the itunes folder??  itunes did not prompt me to move file to trash nor is there an option??

    I am trying to delete songs from itune 11 library and i want it to delete the song from my hard drive as well.  All my songs are in the music folder but not in the itunes folder.  itunes did not prompt me to move file to trash nor is there an option to remove file to trash bin.  How can i  delete songs from both the itunes and hard drive at the same time?

    aespinoza2210 wrote:
    could it be in the itunes folder or does it have to be in the itunes media folder, which is within the itunes folder??
    A Espinoza,
    The iTunes Media folder is set in Preferences > Advanced, and is the key to most iTunes folder organizational activities.  So I doubt that the automatic deletion will work for files that are somewhere else within the folder structure.
    However, I have not experimented with that issue in quite a while, so you are welcome to give it a try in iTunes 11. 

  • Hey guyys .if some 1 from firefox team can help it wud be great......I was using firefox 3.6.3 on Mac OS 10.5.8 and Today I installed firefox 3.0(besides application folder) but not in same application folder like firefox 3.6.3 ...so now i had 2 firefox v

    hey guyys .if some 1 from firefox team can help it wud be great......I was using firefox 3.6.3 on Mac OS 10.5.8 and Today I installed firefox 3.0(besides application folder) but not in same application folder like firefox 3.6.3 ...so now i had 2 firefox version 3.6.3 and 3.0....I had 3.6.3 already open ..i closed it to... open 3.0 ....when i opened 3.0 it asked me to import settings i said no....it opened well.....then i close 3.0 and tried to open 3.6.3 version ...now it was a problem everything got lost sessions, bookmarks, add ons, etc....it went back to default ....when i had 2 profiles in 3.6.3.....can any pls help me on dis 1...is there a way to restore my sessions, bookmarks and add ons ??? I have uninstalled 3.0 version now....??? pls pls pls ....help
    == This happened ==
    Just once or twice
    == today

    It turns out that the problem had to do with network accounts, even though it was not clear at first.  Redirecting the program to the local machine's cache with a network home redirector script fixed the issue.  Thanks anyway.

  • How to remote desktop user can read, write ,modify and traverse folder but not execute?

    Now I ceate a user accout whis is user type and put him into remote desktop group.
    he can login this server by remote desktop.
    My server is windows 2003 but not in nt domain and  it is a workgroup computer.
    I want to limit him access right on one folder in which have many folders and .exe file.
    I only want he can read , write,modify file and traverse folder but not execute any .exe file.
    How can I implement this through NTFS.
    Please give me some advice.

    Hi,
    I think you could using advanced option to configure the file or folder permission:
    http://technet.microsoft.com/en-us/library/bb727008.aspx
    Regards.
    Vivian Wang

  • Why can't I delete all incoming messages at once without having to select each one first. It can be done while in the "Trash" folder, but not the "IN" folder.

    Why can't I delete all incoming messages at once without having to select each one first. It can be done while in the "Trash" folder, but not the "IN" folder.

    Well, what I see happing is this: Tapping edit and checking the first message brings up the “Delete” option. Holding it until the red message “Delete Message” appears, then letting go of the red button and tapping the checked button makes the “Delete Message” message go away. The checked message is still checked with an option to delete just that message. Tap the checked message again just cancels the whole process and I’m back to square one.
    However, if I check a message that is part of a thread of messages and tap Delete, I have the option of deleting all messages in the thread.
    Perhaps the fact that I’m using the 3rd generation of the iPad is the problem, but your suggestion isn’t working.

  • What would the Smart Collection criteria be to isolate files in a folder but NOT in a collection?

    What would the Smart Collection criteria be to isolate files in a folder but NOT in a collection?

    or else FAR more simply,
    though in practice, the difficulty may lie with how fuzzily or precisely the search text used, applies.
    QUESTION
    I'd be very curious to know, does anyone know how to search on a section of a full folder path rather than on the individual parts of that?
    My folders are structured by LR at import, as (e.g.) 2014 / 01 / 27 for 27th Jan 2014.
    So if I wanted to use a Smart Collection to search for (among other things) images in July 2013, I can search multiply on includes all of "2013" and "07" but that also throws up in my case, images which were taken on the 7th day of other months during 2013. I could search on a date range, though that's a little more laborious, or else do what I otherwise prefer, which is by keywords and other attributes plus (possibly) just year.
    If I could search on folder path includes the string "2013/07" this would work fine. But I haven't found a syntax that does that (yet, assuming it is possible at all).
    RP

  • Should the admin/user folder and all of its sub folders be moved to the hdd or just parts of it? (eg. picture, movies, documents)  What is the best way to go about doing this.  Also should a 2t hdd be partitioned.

    iMac with 256ssd and 2t hdd. Should the admin/user folder and all of its sub folders be moved to the hdd or just parts of it? (eg. picture, movies, documents)  What is the best way to go about doing this.  Also should a 2t hdd be partitioned.

    Yes, you can move your user directories to the HD and keep your OSX and Applications on the SSD drive.
    Whether you partition your HD or not depends on how much data you have and how you propose to use your HD.
    Are you planning to use your iMac as a Time Machine backup volume? If so, partition it off.
    Do you have huge data files, eg video, music, photos?
    How much of your 2tb drive will be "free" once it is loaded with all your data?
    A little more information is required before the optimal configuration can be recommended for your use.

  • HT201250 Is there a way to back up only one folder (with a lot of sub folders) in time machine?

    Is there a way to back up only one folder (with a lot of sub folders)

    Then I recomend against using Time Machine.
    I suggest you check out Carbon Copy Cloner instead.
    Personally I see that as a false economy to not back up everything.
    Allan

  • Share nested folder but not parent folder?

    Is it possible to share a nested folder in Lion 10.7.3 but not it's parent folder for one user, but then share the parent folder and all child folders to other users?

    Thanks John,
    I already have that clicked, but the problem is that there are some images that are floating around the parent, not in a sub. If one goes into exployer (but not thru LR) one can easily see which ones are not in the subs, as they show up beside the sub's. But that only works with the jpegs and not the DNGs, as they do not have a thumbnail. One could also add up the numbers of the subs (in LR) and subtract from the parent to find out how many are not in subs, but it still does not identify them.

  • Artist/album names missing when adding folder (but not all of them)

    Yesterday I found iTunes couldn't locate the folder where I store MP3 downloads - ie. I got the dreaded '!' alongside most tracks. When I used the Add Folder command I ended up getting a duplicate of virtually every track.
    However most of the duplicate tracks were only shown with the track number on the original album plus about 12-15 characters from the title (ie. character string used as a label for the MP3 file). There was no detail of the artist or album.
    Given the large number of duplicates involved I decided to clear out the library and have just used Add Folder. Same outcome - 1/3rd of the tracks described in full; the other 2/3rds just show track number and some of the title.
    Suggestions on (a) where I'm going wrong; and (b) whether I can use contents in the Previous iTunes library folder to recreate the library would be greatly appreciated. Many thanks.

    As I've already said this question has been answered maybe no one is monitoring this topic but ... I've just worked out the reason the detail is missing is because the tracks which have limited detail are in WAV format.
    This is where I am completely lost because they have all been downloaded from the iTunes store or from Amazon as MP3 files, and I'm not aware either of the download functions comes with an add-on called "automatically convert to WAV".
    The irony is that this is quite convenient but if anyone can provide an explanation of how it is occurring then I would be interested to hear because I can't figure it out. May still trust my sanity, but not my memory!

  • Mail going to the Junk Mail folder but not marked as Junk Mail

    Hi,
    Hopefully someone can help me. It's something I had done but I don't know what I have done. All of a sudden all my emails from eBay are going directly to my Junk Mail folder, although when I try to click them as 'Not Junk' (Thumbs Up) they are not even selected as Junk Mail and I can still select them to be Junk Mail.
    At the moment I'm just dragging them back into the correct folder but it still keeps happening. (I sell a lot on eBay so it's happening quite often).
    Any help would be much appreciated.
    Thanks!

    Hi Corey,
    Check your settings as outlined in this link:
    Mail (Mavericks): Change the junk mail filter
    Cheers,
    GB

  • Custom Ringtones Show Up in iTunes Folder, but Not on iPhone

    I've recently upgraded from a 3GS to a 4G. I have a few custom ringtones that I created from .MP3 files (converted to .m4r files). I had these same ringtones installed on my 3GS and want them on my 4G.
    I transferred to my 4G by dragging them from the Windows folder to the iTunes device folder. The 5 ringtones show up in iTunes under the Ringtones folder. Only one of them shows up on the phone as being transferred.
    I had done this a couple of days ago, and noticed then that only one ringtone was being shown under Custom Ringtones on my phone. Tonight, I uninstalled them all, rebooted my phone, and then re-dragged the files as per above. Again, all show up in the folder on the iPhone in iTunes, but one shows up on the phone. This is now a different one than a couple of days ago.
    Soooo... what can be causing this? The files are apparently on my phone, but not appearing in the usable list. I need some help in resolving this. I've looked through these forums and seen similar issues. There doesn't seem to be a 'proper' way to do this. I manage my phone manually, and have not done a 'sync' with the ringtones as they show up in the folder... (I don't really see the need to sync if they're appearing in iTunes as on the phone).
    Thanks!

    Hi
    having the same problem with my both devices.
    already have custome ringtones and wanted to add more, followed the instruction and now i have them in iTunes under the Ringtones section.
    my devices are iPhone 4 and using OS 4.21
    during the sync i saw that the ringtones are added and they appear under the ringtone selection under the device info, however they do not appear on the device after sync.
    any help??
    by the way, i have read all the previous messages and i cant find any ringtone folder under iTunes folder

  • Iphone back up in library folder, but not on itunes - pls help

    using iphone 4 and mb pro..  i am trying to restore from a back up. most recent back up says corrupted, so i'm trying to use the one before that (relatively recent) also.  i'm not using icloud. 
    the back up i want doesn't appear in my itunes preferences choices to select, but the one i want to use does appear in my library/mobilesync folder... can anyone walk me thru how to get the one from the mac folder to appear in the itunes preferences or an appropriate solution?   thank you...

    I backed up my computer - but not my iphone on time machine.  Will the backup file on time machine be from the last iphone backup?  or from my last iphone sync? (I won't have access to my time machine drive for a few days, and am stressing out trying to find another way to retrieve the lost info)

  • Video plays on Root folder but not in Cgi-bin folder...Help!

    Hello-
    I just transfered my entire website content form one domain to another and for some reson my videos will not play on the new domain whereas they played correctly in the cg-bin folder of the old domain.  I do not understand why and need your help to figure it out since I am not a flash guy.
    Here is the link to the videos that are not working correctly.  http://www.healthywaterlife.com/cgi-bin/d.cgi/phil/videos.html
    My cgi guy says that all of the cgi is working correctly and he has stated that the problem lies within the code of the html.  So here is the html code for one of the videos...
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="605" height="350" id="FLVPlayer1">
               <param name="movie" value="FLVPlayer_Progressive.swf" />
               <param name="salign" value="lt" />
               <param name="quality" value="high" />
               <param name="scale" value="noscale" />
               <param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=http://www.healthywaterlife.com/videos/historyofkangenwater&autoPlay=false&autoRewind=fals e" />
               <embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=http://www.healthywaterlife.com/videos/historyofkangenwater&autoPlay=false&autoRewind=fals e" quality="high" scale="noscale" width="605" height="350" name="FLVPlayer1" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" />        
    </object>
    And yes, my server, codero, supports all of the cgi as the old domain worked well and was operating on the codero server.
    Thanks for your help!

    Are you sure that all the files have been uploaded?
    The player.swf, the skin.swf, the actual .flv video file, and what about any javascript files used for Flash detection? So that could be as many as 4 files.
    To test, paste the entire absolute address to each of those files directly into your browser address bar, like this:
    http://www.healthywaterlife.com/videos/FLVPlayer_Progressive.swf
    You should not see ANY file not found messages.
    After verifying that each file exists on the server, then it's only a matter of correctly pathing all the Flash assets, and pathing includes correctly spelling file names (upper or lower case.. must be exact) as well using correct folder names.
    To review Flash pathing:
    Pathing issues
    Almost always when it works on the local machine and not the server, it's a pathing problem.
    You can put your Flash related files in whatever folders you want, they do NOT have to be in the root, they do NOT all have to be in the same folder. But if you have a problem and if sticking them all in the root folder works, then you know that the issue was a pathing problem.
    Just remember that paths used in the .swf become relative to the Web page on which the .swf is placed, NOT it’s physical location.  So for example, if your .swf is in the flash/data folder and you use that .swf on a Web page in the root folder, you are in effect, removing that .swf from flash/data and putting it in root. So if the .swf is loading any related files (xml, images, video, etc), the path used inside the .swf to load the .xml file has to be relative to it's new location in root and then back down into flash/data. This is true even though when testing the .swf by itself, it can be inside flash/data and work just fine, since relative to it's location, the path is just fine, they are in the same folder. But if that same path is used when the .swf is placed on a page two folder levels up, the relative path has changed, the old "same folder" path will not work.
    In fact if you are placing the .swf on a web page in a different folder than the .swf is stored in, and that .swf calls external assets, then direct clicking and opening of the .swf in it’s folder should NOT work! That’s because the paths to the external assets should be relative to the Web page and not the physical location of the .swf.
    So just be sure that you use addresses relative to the final Web page locations (not physical file locations) and you can put the Flash related files in what ever folders you want.
    Best wishes,
    Eye for Video
    www.cidigitalmedia.com
    If that doesn't fix it, post a link. That really give us the best chance to help you.
    Best of luck!
    Adninjastrator

Maybe you are looking for