ACL / ACE - Copy folder structure including all rights

Dear readers
A question about the proper settings in ACL/ACE for to copy a given folder structure incl. all ACL/ACE rights.
Situation:
On a OS X server, the admin user did setup a sample structure of folders and files with the corresponding access rights.
Now this folder structure has to be accessible for the "normal" users in a shared folder.
This sample folder must be secured against changes from "normal" users BUT if it is copied it must keep all the set access rights.
Question:
What's the best way to do so?
1) Set the protected flag of the most top level folder of this sample structure folder set at it's done?
2) Use of a Apple Script to achieve this?
3) Use of a Bash Script to achieve this?
4) Can only be done as the admin user which did setup this structure?
5) Other best effort suggestions to achieve this?
Known things:
- chmod is involved to do it on terminal
- It must be possible as the system does something similar when a new user is created.
Thank you in advance for anyones help and suggestions.
Any note and suggestion for easy-to-read and illustrated documentations are welcome.
Kind regards
Tho

Take a closer look at the ditto(1) man page in Terminal.

Similar Messages

  • Aperture only sees MOVs in SD card copy folder structure

    I copied a couple of SD cards to hard disk and trying to import images only shows the Movs which are in H.264 MTS file packages and completely ignores JPG images in the folder structure root and DCIM folders. All seems very random as not all MOVs are shown anyway (Quicktime handles packages perfectly).
    It's obviously no big deal and just requires some finder foot work but I see more and more vague behaviour from all Apple products these days.

    Thanks - reading directly from SD card shows images but many of the movies are still missed. Basically all a bit random - less than useless for a professional tool were users may rely on dumping card contents into a library before reuse.

  • Copy Folder Structure from Explorer into Outlook 2013

    Hi,
    I have just spent approx 3 months designing an Enterprise Classification Scheme, and built a folder structure in Explorer that I want to replicate in Outlook.
    I thought it would have been as simple as copy and pasting from Explorer to an Outlook folder however when I attempt to do so I get the following error:
    "Only files or objects can be attachments. x:\xxxx\xxxxx\xxxxx is a folder structure and cannot be attached."
    Surely there must be a simple way of doing this so I don't have to manually recreate and name 442 folders in Outlook.
    Any advice greatly appreciated.

    I tried the Outlook tool with no luck.  It ran and looked as though it was doing something but no folders were created.
    I did a bit more of a search around and came across a spreadsheet that works perfectly for making folder structures on Network drives.  Anyone up to having a look at the VBA in the  spreadsheet and modifying it to make shared folders in outlook
    2013?
    Sub CreateFolderStructure()
    'Create folder for all vlues in current sheet
    'folders will be created in folder where the excel file was saved
    'folders will be created from first row, first column, until empty row is found
    'Example expected cell structure: (data starting in current sheet, column A, row 1)
    'folder1    subfolder1  subsubfolder1
    'folder2
    'folder3    subfolder3
    '           subfolder4
    'this will result in:
    '<currentpath>\folder1\subfolder1\subsubfolder1
    '<currentpath>\folder2
    '<currentpath>\folder3\subfolder3
    '<currentpath>\folder3\subfolder4
        baseFolder = BrowseForFolder
        If (baseFolder = False) Then
            Exit Sub
        End If
        Set fs = CreateObject("Scripting.FileSystemObject")
        For iRow = 2 To 6500
            pathToCreate = baseFolder
            leafFound = False
            For iColumn = 1 To 6500
                currValue = Trim(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Worksheets(ActiveCell.Worksheet.Name).Cells(iRow, iColumn).Value, ":", "-"), "*", "-"),
    "?", "-"), Chr(34), "-"), "<", "-"), ">", "-"), "|", "-"), "/", "-"), "\", "-"))
                Worksheets(ActiveCell.Worksheet.Name).Cells(iRow, iColumn).Value = currValue
                If (currValue = "" And leafFound) Then
                    Exit For
                ElseIf (currValue = "") Then
                    parentFolder = FindParentFolder(iRow, iColumn)
                    If (parentFolder = False) Then
                        Exit For
                    Else
                        pathToCreate = pathToCreate & "\" & parentFolder
                        If Not (fs.FolderExists(pathToCreate)) Then
                            CreateDirs (pathToCreate)
                        End If
                    End If
                Else
                    leafFound = True
                    pathToCreate = pathToCreate & "\" & currValue
                    If Not (fs.FolderExists(pathToCreate)) Then
                        CreateDirs (pathToCreate)
                    End If
                End If
            Next
            If (leafFound = False) Then
                Exit For
            End If
        Next
    End Sub
    Function FindParentFolder(row, column)
        For iRow = row To 0 Step -1
            currValue = Worksheets(ActiveCell.Worksheet.Name).Cells(iRow, column).Value
            If (currValue <> "") Then
                FindParentFolder = CStr(currValue)
                Exit Function
            ElseIf (column <> 1) Then
                leftValue = Worksheets(ActiveCell.Worksheet.Name).Cells(iRow, column - 1).Value
                If (leftValue <> "") Then
                    FindParentFolder = False
                    Exit Function
                End If
            End If
        Next
    End Function
    Function BrowseForFolder(Optional OpenAt As Variant) As Variant
         'Function purpose:  To Browser for a user selected folder.
         'If the "OpenAt" path is provided, open the browser at that directory
         'NOTE:  If invalid, it will open at the Desktop level
        Dim ShellApp As Object
         'Create a file browser window at the default folder
        Set ShellApp = CreateObject("Shell.Application"). _
        BrowseForFolder(0, "Please choose a folder", 0, OpenAt)
         'Set the folder to that selected.  (On error in case cancelled)
        On Error Resume Next
        BrowseForFolder = ShellApp.self.Path
        On Error GoTo 0
         'Destroy the Shell Application
        Set ShellApp = Nothing
         'Check for invalid or non-entries and send to the Invalid error
         'handler if found
         'Valid selections can begin L: (where L is a letter) or
         '\\ (as in \\servername\sharename.  All others are invalid
        Select Case Mid(BrowseForFolder, 2, 1)
        Case Is = ":"
            If Left(BrowseForFolder, 1) = ":" Then GoTo Invalid
        Case Is = "\"
            If Not Left(BrowseForFolder, 1) = "\" Then GoTo Invalid
        Case Else
            GoTo Invalid
        End Select
        Exit Function
    Invalid:
         'If it was determined that the selection was invalid, set to False
        BrowseForFolder = False
    End Function
    Sub CreateDirs(MyDirName)
    ' This subroutine creates multiple folders like CMD.EXE's internal MD command.
    ' By default VBScript can only create one level of folders at a time (blows
    ' up otherwise!).
    ' Argument:
    ' MyDirName   [string]   folder(s) to be created, single or
    '                        multi level, absolute or relative,
    '                        "d:\folder\subfolder" format or UNC
    ' Written by Todd Reeves
    ' Modified by Rob van der Woude
    ' http://www.robvanderwoude.com
        Dim arrDirs, i, idxFirst, objFSO, strDir, strDirBuild
        ' Create a file system object
        Set objFSO = CreateObject("Scripting.FileSystemObject")
        ' Convert relative to absolute path
        strDir = objFSO.GetAbsolutePathName(MyDirName)
        ' Split a multi level path in its "components"
        arrDirs = Split(strDir, "\")
        ' Check if the absolute path is UNC or not
        If Left(strDir, 2) = "\\" Then
            strDirBuild = "\\" & arrDirs(2) & "\" & arrDirs(3) & "\"
            idxFirst = 4
        Else
            strDirBuild = arrDirs(0) & "\"
            idxFirst = 1
        End If
        ' Check each (sub)folder and create it if it doesn't exist
        For i = idxFirst To UBound(arrDirs)
            strDirBuild = objFSO.BuildPath(strDirBuild, arrDirs(i))
            If Not objFSO.FolderExists(strDirBuild) Then
                objFSO.CreateFolder strDirBuild
            End If
        Next
        ' Release the file system object
        Set objFSO = Nothing
    End Sub

  • Copying Folder Structure

    I have a folder structure of Months (01-January, 02-February, etc.) setup under each year folder.
    Is there a way in Aperture to create a folder structure template and copy that structure to a new folder, as the new years need to be setup?

    You can do this for Projects by setting up you Folder and Album structure in an empty Project, exporting it, and then importing it again each time you need a new copy, but not for Folder structures outside of Projects.
    But if you download the Aperture-InDesign integration examples from http://www.apple.com/applescript/aperture/indesign/ there are a couple of example scripts for creating organisational structures that you might be able to tweak.
    Ian

  • Workflow to zip specific folder also includes all desktop items

    Hello,
    I have built an Automator workflow that selects a specific folder ("Mail") in my user account's Library folder, creates an archive file of that folder on the desktop.
    However, when I unzip the archive file, I find that all items on the desktop also have been included in the zip file.
    What needs to be done to the workflow so that it zips only the selected folder, excluding all of the desktop items from the zip archive file?
    Many thanks in advance

    There's no cut and paste in the Finder on Macs as there is in Windows. You can copy and paste, but most people just drag and drop a file to move it from one place to another.
    In any open or save file dialog window, click the small triangle next to the filename to expand the window and show a mini-Finder with the sidebar, allowing you to easily change the location you're looking at or navigate into subfolders.
    Matt

  • Using robocopy to copy folder structure only

    Hello,
    I'm trying to do the equivalent of xcopy /t /e in robocopy.  That is, I only want to copy the folder tree, not the files themselves. 
    -Charlie

    Glad to hear your issue has been solved.
    Regards,
    Leo  
    Huang
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Converting an entire folder structure with images to jpeg, intact with folder structure.

    Hi!
    I have a rather large folder structure consisting of images dating all the way back to when I got my first digital camera in '98.
    The images are captured with a variety of cameras over the years and also includes image types processed with software. It's an almost 1,5 terabytes holy mixture of CR2, ARW, JPEG, PSD, PSB, TIFF, HDR and probably more that i forgot. However all of the formats can be read by photoshop/bridge. The file structure is /YYYYMMDD/file.ext. Converting the files folder by folder using the standard Image processor feature in bridge/photoshop is not really an option, considering the size of the structure.
    What I am trying to do is to convert the entire structure to .jpeg, both for backup purposes and also for being able to view all the images on devices other than my computer. It's important that the raw files are converted with their respecive .xmp adjustments applied.
    Is there any possible way to achieve this? I don't have lightroom, but if it can do this I will purchase it. Maybe some other image managment applications, like ACDSee, can do this?
    If someone know of any applications or (photoshop) scripts that can do this, or have any tips for me it is *HIGHLY* appreciated!

    Paul Riggott: T-H-A-N-K-S!
    The Russell Brown script is exactly what I needed, couldnt ask for anything better. I tried it out for a test run on a folder with 10 subfolders containing various file types and it recreated the folder structure complete with jpegs on another disk. The script have lots of useful options for converting, naming, color space conversion and much more.
    The one small thing to take note of, if others are reading this, is that you have to open the script in Photoshop in order to to process entire folder structures (including subfolders). If you launch the script from Bridge, it will only let you process single files and not folders.
    Again, you really made my day with this tip. Thanks

  • Aperture doesn't see proper iPhoto folder structure for Locating Referenced

    I've got some photos in Aperture 3.03 that were imported from an older version of iPhoto. I needed to reconnect the Aperture photos to the iPhoto originals, so I searched for the location of the photos with Spotlight, which found them in a folder in the iPhoto package.
    But when I select the preview photo in Aperture and go to Locate Referenced Files, I can see my iPhoto library, but when I go to look inside the iPhoto library, the folder structure is all wrong. Thus, I can't find my photo.
    What would cause Aperture to misread my folder structure? Is it using an old database of folder structure and how to I reset that database?

    Thanks for these two responses. I can see the photos fine with iPhoto '09, version 8.1.2 (424).
    Right now, I'm backing up my Aperture vault before moving to Aperture 3.10. Hoping that will give me a chance to solve the problem.

  • MTS files (and really, they're just MTS, not the entire folder structure)..

    OK, I see lotsa advice about dealing with MTS files...if they're in their proper folder structure.
    Well, that'd be easy, and I'd be importing them now if they were in their proper folder structure. But they're not...I have 503 .mts files, in a folder, that a client copied "for me", and now expects me to import.
    Any advice? Like I said, I only have the .mts files, not the supporting folder structure.

    Greetings all from Jakarta - i have a feeling this is going to be a lengthy response and will only be of interest for those currently suffering from MTS file issues, but I do believe (while my solutions are not perfect) I have found some answers. What I have not found, unfortunately, are the hairs that I pulled out of my armpits in frustration over these MTS issues.
    Background info: My office purchased the Panasonic HDC-TM700 to provide back-up to our Panasonic 170EN and we have been quite happy with the results. We have also been converting the MTS files to .MOV files on both Toast Titanium, and Final Cut Pro.
    SITUATION #1
    After a day of shooting I downloaded the TM700 files (full structure) to the hard disk. On day two after a full day of shooting I realized I forgot to format the camera's memory card so i had 50 MTS files that I already downloaded. Ever the smart guy, I highlighted file #51-#102 and dragged them into the STREAM file of the previous day's download. Then I formated the camera so i wouldnt forget the next day.
    Well during log and transfer in FCP ONLY THE FIRST 50 FILES could be read, because that is what the metadata in the info supported ..... FCP couldnt even locate the other 50 files. I nearly fainted at the thought of getting fired. Thank goodness, when we dragged the MTS files into TOAST TITANIUM they could be read and converted!
    SITUATION #2
    The new guy (seriously, it was the new guy!) ONLY DOWNLOADED THE MTS files and since I wasn't there I wasn't there to see the havoc when neither FCP or TOAST could open the files. I was called in and my first idea was to take an old file structure, copy it, and slip the MTS files into the STREAM folder.
    Well, it worked!! kind of.... The interesting thing is that the files could be converted in TOAST (FCP would not open the files) BUT ONLY TO THE TIME CODE THAT was equivalent to the original file. So if the original file was 1 minute and the file that I only had the MTS file for (and which corresponded to the file's number) was 5 minutes, only 1 minute was converted.)
    So what I did was I took the TM700 and I shot five minutes of my foot. Then I downloaded the full file structure. Since I only took one shot of five minutes there was only one file in the STREAM folder, which was a 598mb file numbered 00000.MTS
    I know I will regret it one day but i deleted the MTS file of my foot. Then I placed in one of the "homeless" MTS files into the (now empty) STREAM folder and changed the name to 0000.MTS -
    When opened in FCP log and transfer - IT DID NOT WORK. However, in TOAST I am happy to say IT WORKED, yayyyy. And the file that was converted was the length of the clip. What I thought might happen is that if the clip was only 30 seconds long but the foster file was 5 minutes then there would be 30 seconds of footage and 4.5 minutes of black empty space on video. That wasn't the case.
    THE SHORT TERM SOLUTION:
    Over the years I have been very very very lucky with all the help I have gotten over the internet and in my own small way I hope the following helps out others. So here is what I have done, with instructions.
    PLEASE NOTE I AM INDONESIAN LIVING IN INDONESIA SO WE USE PAL ..... 25 frames per second. .... Hopefully if someone in North America likes this idea and can help out, they will post a NTSC file structure.
    OKAY INSTRUCTIONS:
    1. Double click this link and download the file structure. The the file structure is only 68kb all your (and mine) frustrations for 68,000 bytes!!
    www.klirkom.com/helpout/AVCHD
    2. If you look inside the folder (AVCD->BDMV->STREAM) you will see AN EMPTY STREAM FOLDER. This is where you will place your "lost/not working" MTS files. Sorry, but this file structure only supports two files at a time. The first file is 5 minutes long, the second file is 33 minutes long (i was going to make it 10 minutes but I forgot about the camera being on and left it for 33 minutes ...)
    3. Change your first file name (preferably an MTS file less than 600mb so that the 'foster' file can cover it) to 00000.MTS. Now change your second file (preferably less than 4GB, but unless you are filming the whole wedding this should be okay for most people.... the important thing to remember is that if you want your full file converted without missing any parts at the end, the files should be smaller in size than the foster files) to the name 00001.MTS
    4. Now drag your newly named and newly placed MTS files into TOAST TITANIUM. Click convert. I have not tried this with other software but hopefully it works for you.
    5. If you want you can now rename your original MTS files to their original names and continue with the next two files. I know with 500 MTS files this is a HUGE pain in the buttox .....
    Okay, good luck all!!
    Jakartaguy

  • Mass uploading of folder Structure?

    Dear Expert,
    As per client requirement, we needed feasibility of Upload of multiple documents with folder structure. Suppose we had folder structure with different files in folders available in CD, which we wanted to copy/create folder structure in Content server as available in CD. Is there any BAPI is available.
    While Searching for this requirement I found bapi_document_create2 u2026.but I want to know with this can I directly copy folder structure available in CD to Content Server.
    I wanted to know, as per requirement will it be possible to create folder structure from CD?
    Thanks in advance..

    Hi Sam,
    as explained in your SAP customer message the BAPI_DOCUMENT_CREATE2 could be used for this requirement. If you want to hand over document structure data please fill table DOCUMENTSTRUCTURE. For further information on the BAPI functionalities please see SAP note 766277.
    Best regards,
    Christoph

  • Reorganising Folder Structure

    Hi,
    How do I get iTunes to automatically reorganise the file/folder structure of all my music? I want it to put all the songs in Artist > Album folders. At the moment, I just have a big list of Album folders, which I organised manually myself. I want iTunes to take care of everything, and sort everything the official Apple way.

    Thanks for that tip Chris,
    The thing is, all my songs and folders are already within the iTunes Music folder. My music is currently organised like this:
    iTunes Music > Love > 01 Because (Love Version)
    But that's not the automatic way that iTunes organises music. If iTunes had organised my files the structure would be like this:
    iTunes Music > Beatles > Love > 01 Because (Love Version)
    So how do I get iTunes to do this?

  • Script to copy data to new folder structure

    I am working on a project where I need to migrate many TB's of data into a new folder structure.
    I have exported the one of the folders including all sub-folder with treesize and exported it to excel.
    So the source folder structure is in column A, which has several thousands lines and I have put the destination folders in column B.
    Now I would like to script the data copy for every line the source folder is listed in column A and the destination folder is listed in column B.
    This has to be done for all containing sub folders and files of course.
    Has anyone got an idea how the script should look like ?
    I can export the excel sheet to CSV, but then my knowledge stops unfortunately.

    Win32 Device Namespaces
    The "\\.\" prefix will access the Win32 device namespace instead of the Win32 file        namespace. This is how access to physical disks and volumes is accomplished directly, without going through the       
    file system, if the API supports this type of access.  You can access many devices other than disks this way        (using the
    CreateFile and        
    DefineDosDevice functions, for        example).
    https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx
    ¯\_(ツ)_/¯

  • Copy playlist to usb-stick and keep folder structure

    Is there an easy way to copy a playlist from iTunes to a USB-stick (for use in the car)? The folder structure of artist > album> track should be kept.
    If you simply use drag and drop, iTunes copies all songs into one folder.

    "Files to Folder Scripts
         This is a collection of two scripts: Alias Files to Folder... which creates an alias of each file of the selected iTunes tracks in a user-selected location, and Copy Files to Folder... which will copy the files of the selected iTunes tracks to a user-selected location."
    It appears the first one  just puts an alias in a single folder.  The second one looks like it copies the files to a single folder which is pretty much what the OP is doing already with dragging.

  • "On my Mac" folder including all my subfolders in Mail have disappeared after Yosemite install! HELP!

    "On my Mac" folder including all my subfolders in Mail have disappeared after OS X Yosemite version 10.10.2 install! What should I do?

    Quit Mail. Force quit if necessary.
    Back up all data before proceeding.
    Triple-click anywhere in the line below on this page to select it:
    ~/Library/Mail/V2/MailData
    Copy the selected text to the Clipboard by pressing the key combination command-C. In the Finder, select
              Go ▹ Go to Folder
    from the menu bar. Paste into the box that opens by pressing command-V, then press return.
    A folder window will open. Inside it there should be files with names as follows:
              Envelope Index
              ExternalUpdates.storedata
    Move those files to the Desktop, leaving the window open. Other files in the folder may have longer names that begin as above. Move those files, if any, to the Trash.
    Relaunch Mail. It should prompt you to re-import your messages. You may get a warning that the index is damaged and that Mail has to quit. Click OK. Typically, the process takes a few minutes, but it may take hours if you have gigantic mailboxes. In that case, you may be able to speed things up by temporarily adding your home folder to the Privacy list in the Spotlight preference pane. Remove it when Mail has finished importing.
    Test. If Mail now works as expected, you can delete the files you moved to the Desktop. Otherwise, post your results.

  • Back ups disappeared. I can see the folder structure but they are all targetless alias.

    Hi,
    A couple of months ago I restored a Lion MacBook Time Machine Back up to a new MacBook Air using Mountain Lion. Obviously, the whole content wouldn't fit in the considerably smaller hard drive of the MBA, so I only downloaded what was most important, and left the back up in my external disk to access if I needed other files.
    The thing is, I did access the files a couple of times, but sometime in the past two months the back ups have dissapeared. Instead, I can find my fold structure, but they are only aliases. There are no files there.
    I used finder to browse through all the different dates inside the Time Machine folder, but there were still only aliases.
    The Time Machine Back up folder reduced in size from about 500GB to 45GB, but I have not deleted anything. And I haven't set up a new time machine.
    Any one has any idea of what might have happened?
    Thanks in advance.

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In Library Manager it's the FIle -> Rebuild command)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. 
    Regards
    TD 

Maybe you are looking for

  • How to populate a table based on a row selection from another table.

    Hi, i just started to use ADF BC and Faces. Could some one help me or point me a solution on the following scenario . By using a search component , a table is being displayed as a search result. If i select any row in the resulted table , i need to p

  • Netweaver Developer Studio:

    Hello,        I have a NDS 2.0.9 installed on my local pc(Windows XP). I am trying to deploy the Calculator example(CalculatorEar.ear) from NDS onto a remote SAP J2EE engine 6.30. The remote J2EE engine(server, disp & SDM) is up and running.  When I

  • Deploying QPM policies through CLI

    Hello, We are using QPM v4.1 Combined (provisioning + monitoring) and using the IP Telephony wizard to create Voice policies on the network. Deploying polices directly from QPM showed up that some deployment jobs fail for reasons such as "QPM interna

  • Outlook calendar items not visible in Day view - but in Today view!

    Hi All, I'm synchronising calendar items from the iPhone to Outlook 2003 (setup with Exchange 2003). After synchronisation the calendar items they first show in the Day/Week/Month view. But after changing the view all items synchronised from th e iPh

  • Adobe Reader 8.1.2 does not run as non-root user

    Hi, First off - this applies to an x86_64 machine, which I'm attempting to run with nspluginwrapper and firefox. I find that I am able to open webpages with PDF content as root, but not as a normal user.... All permissions set correctly as far as I c