Thursday, April 5, 2018

The read-only bit doesn't make folders read-only

In Windows, folders can be set read-only, but this doesn't do anything to stop them from being changed. For directories, the read-only bit is part of a signal that the folder might want special handling by the shell. When Explorer sees a directory marked read-only and system, it checks for a desktop.ini file inside that might specify special appearance or behavior for the folder. (This is why the Fonts folder is so non-directory-like, for instance.)

If you need to protect a folder from changes, adjust the access control list on the Security tab of the Properties window.

No comments:

Post a Comment