Security Problem with after DOS copy

For the history of the issue see the following link.

http://www.experts-exchange.com/Operating_Systems/Windows_Server_2003/Q_21855122.html

After the folders are copied for the user, the user's own permissions on the folders are removed so they don't have access to them. Is there a way to keep the permissions on the folders after they have been copied?

Mas
mascolojAsked:
Who is Participating?
 
Netman66Commented:
/x also implies /o - so you'll get /o automatically.

0
 
centrepcCommented:
The copy command doesn't keep the permissions.  If you move the files the permissions are kept.  I will see if there is a way around this.
0
 
Netman66Commented:
Use XCOPY with the /X switch as one of the switches.  Replace your copy command with the xcopy command in that batch file.



0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
mascolojAuthor Commented:
I'll try the /x switch tomorrow when I get back to work. Thanks

Mas
0
 
mcsweenSr. Network AdministratorCommented:
You want to replace

copy \\server\sourcefolder c:\destfolder

with

xcopy /e /o \\server\sourcefolder c:\destfolder

/x will only copy audit info
0
 
mascolojAuthor Commented:
Thanks guys. I put in the /x switch and it worked great.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.