Copy File and Folder Permissions using Robocopy unexpected results

Discussion in 'Windows Server' started by Roundy, Feb 28, 2006.

  1. Roundy

    Roundy Guest

    I have a situation where we have a fairly large directory structure with
    complex ntfs permissions. Basically we have one folder for each job we
    produce with a directory structure under it. I have to have specific
    permissions on each of the subfolders. So, when I create blank folders for
    the jobs, I use robocopy and create the folders and this works just fine.
    However, I have had to make changes to the ntfs permissions. We already have
    a significant number of folders created, and I am trying to avoid going into
    each folder and adding the new folder I want, and changing security settings
    on the subfolders that need changed.

    I used robocopy to copy security settings only robocopy source destination
    /e /copy:atsou
    The source file is a "blank copy" of the directory structure. The result is
    that security is applied to the folder, but the files in the folder do not
    get the security applied to them. When I check the folder security settings
    it does show that the security should apply to subfolders and files, but it
    is not working that way. Any Ideas on how I could accomplish this?

    Also, during my testing I accidentally created a folder called "2006001 "
    there was already a folder called "2006001" so there is one filename with a
    space and one without. I have tried everything I can think of to get rid of
    the empty folder with a space in the filename, any ideas on how to do this.
    It won't let me delete it or rename it?
    Roundy, Feb 28, 2006
    1. Advertisements

  2. You can use xcopy.exe /o to copy ownership information.

    Make sure to surround the name of your unwanted folder with double
    quotes, e.g.

    rd /s /q "2006001 "

    If unsuccessful, quote the error message you see on the screen.
    Pegasus \(MVP\), Feb 28, 2006
    1. Advertisements

  3. Roundy

    peterc Guest

    to remove any files that cause a problem you can boot on a bootable CD with
    file editing (see Barts Bootable cd) Windows is not loaded so files like dat
    etc can errased without windows security interfering.
    Lastly subinacl.exe (Windows Tool Kits) is the definative acl editing tool
    peterc, Mar 1, 2006
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.