We help IT Professionals succeed at work.

Read-only flag on robocopy

Alex
Alex asked
on
77 Views
Last Modified: 2019-03-27
Morning all,

So a really odd issue has happened, I've migrated a file server using robocopy which was fine. The users could access the files but not modify them. So I checked the security which is also fine, but what I found is the folder has a "Read-only" flag set.

I checked the source and it was set there on a 2003 server, does this change on a 2012 box?

Thanks
Alex
Comment
Watch Question

CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
AlexA lack of information provides a lack of a decent solution.
CERTIFIED EXPERT

Author

Commented:
Right, so on 2003 that's by design, I assume it screws up on 2012 when you robocopy to it.
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
This is still by design on modern OS'.
What "screws up"? I don't understand.
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
If users cannot write, the question is: did you verify permissions?
AlexA lack of information provides a lack of a decent solution.
CERTIFIED EXPERT

Author

Commented:
Yep,

I checked permissions, they have modify rights on the folder, I used the following robocopy command

“robocopy  \\Server1\s$ \\server2\S$ /E /ZB /DCOPY:T /COPYALL /R:0 /W:0 /V /TEE /LOG:RobocopyS.log”

so when the user tries to modify a file, they get access denied, so the NTFS level is fine but it still doesn't work.
CERTIFIED EXPERT
Most Valuable Expert 2019
Most Valuable Expert 2018

Commented:
Check the share permissions through which the users access the files. Default is "Read" for the group Everyone  ...
AlexA lack of information provides a lack of a decent solution.
CERTIFIED EXPERT

Author

Commented:
I used authenticated users and Read instead of everyone.

Should achieve the same goal right?
Olivier MARCHETTACitrix Support and Infrastructure Engineer
CERTIFIED EXPERT

Commented:
You should give authenticated users Full Control in the share permission.
AlexA lack of information provides a lack of a decent solution.
CERTIFIED EXPERT

Author

Commented:
..... really? So everyone only needs read, authenticated users are full control?
Olivier MARCHETTACitrix Support and Infrastructure Engineer
CERTIFIED EXPERT

Commented:
You should always define the share permissions to Full Control for Everyone.  (unless if you want to restrict your share to read only)
Then you set your NTFS permissions (ACL) on your directories and files.
CERTIFIED EXPERT
Most Valuable Expert 2019
Most Valuable Expert 2018
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
Never full control on the share permissions!
Everyone:modify.

If you set share perms to full control, then no matter how the NTFS permissions are, the owner of a folder (=the user himself) will ALWAYS be able to change permissions on his folders which is (usually) not what admins want.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.