Link to home
Start Free TrialLog in
Avatar of Inbox360
Inbox360

asked on

how can i get xcopy to copy folders on a mapped drive on domain?

heres the problem i have new w2k3 domain and testing out new file structure.  i have a folder that has a script in it that when ran by certain users it creates a whole bunch of folders(already setup somewhere else) with files in it and copies over permissions too. i am on a test user for one of my groups and the script  will not run. this is my script.
                                              xcopy Z:\protected Z:\Projects\ATT_BW /e /i /o /y /k /c
the drive that gets mapped to user is z: drive and the protected folder and projects are on the root.  in the att_bw folder is this line in a .cmd file.  heres the error i get.
Access denied
Unable to create directory - Z:\Projects\ATT_BW
0 File(s) copied

I cannot figure out why when i logon and get mapped drive. i go into z and try it. it runs but i am the domain admin.  when i try the test user, i get that error, any ideas? thanks.
Avatar of BSonPosh
BSonPosh
Flag of United States of America image

Yes... either the share permissions do not allow you to create directories or NTFS permissions do not allow you.

The test user needs to have at least change via share and Modify via NTFS
Btw... This needs to be on root of "Z:"
Avatar of Inbox360
Inbox360

ASKER

im pretty sure its a permissions issue.  on the projects folder i gave the group engineering full control, still no good. made user admin from builtin still no good.  so maybe giving intenna\users  read access to protected folder would do it but then there in own OU so i put in auth users have full control??  i just gave the intenna share which is the z drive auth users have modify. not working.  tried giving the group that the test user is in modify to intenna root share which is z drive and still no. ideas? how can i find out why?
I suggest for Testing
Give Domain Users FC via Share
Give The group FC via NTFS

do you mind doing an xcacls on the root?
sure anything to fix it. what is xcacls? how do i do it
i looked into it and am trying it. anything specific i need to try?
heres my output for the d: drive of the server
d:\ BUILTIN\Administrators:(OI)(CI)F
    NT AUTHORITY\SYSTEM:(OI)(CI)F
    CREATOR OWNER:(OI)(CI)(IO)F
    BUILTIN\Users:(OI)(CI)R
    BUILTIN\Users:(CI)(special access:)
                  FILE_APPEND_DATA

    BUILTIN\Users:(CI)(IO)(special access:)
                  FILE_WRITE_DATA

    Everyone:R
ASKER CERTIFIED SOLUTION
Avatar of BSonPosh
BSonPosh
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
gave users of domain full and now the user can run script. thanks. now i gotta lock it down and play with it. thanks
That looks incorrect.

Make sure on the root you have
Write Folders on child containers
should look something like
BUILTIN\Users:(OI)(CI)(special access:)
                      READ_CONTROL
                      SYNCHRONIZE
                      FILE_GENERIC_READ
                      FILE_GENERIC_EXECUTE
                      FILE_READ_DATA
                      FILE_WRITE_DATA
                      FILE_APPEND_DATA
                      FILE_READ_EA
                      FILE_EXECUTE
                      FILE_READ_ATTRIBUTES
does it matter if i took off inheritance on the intenna folder which is on root of d drive?