• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 585
  • Last Modified:

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.
0
Inbox360
Asked:
Inbox360
  • 6
  • 5
1 Solution
 
BSonPoshCommented:
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
0
 
BSonPoshCommented:
Btw... This needs to be on root of "Z:"
0
 
Inbox360Author Commented:
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?
0
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

 
BSonPoshCommented:
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?
0
 
Inbox360Author Commented:
sure anything to fix it. what is xcacls? how do i do it
0
 
Inbox360Author Commented:
i looked into it and am trying it. anything specific i need to try?
0
 
Inbox360Author Commented:
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
0
 
BSonPoshCommented:
I meant to display the ACL and post.
should just
xcacls z:
or where ever the root of z: maps to
0
 
Inbox360Author Commented:
gave users of domain full and now the user can run script. thanks. now i gotta lock it down and play with it. thanks
0
 
BSonPoshCommented:
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
0
 
Inbox360Author Commented:
does it matter if i took off inheritance on the intenna folder which is on root of d drive?
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now