Is it possible to create read only directory on windows so I can't create files/directories in it? I've denied all permissions for all users, set folder read-only and I can still create files and access that folder from cygwin or programmatically (Java). It effectively just denies accessing it from windows explorer and cmd.


You can do following these steps to set permission

  1. Right-click the folder > Properties
  2. Security tab > Advanced
  3. Click On change permission.
  4. Select entry and click on edit button and you can add new entry for new user
  5. If you want to restrict checked on deny check box whatever you want to restrict and then click ok
  6. if you add new entry then you have also option to set allow deny option aur also full control option .
  7. if you want to permission will apply on objects subfolders too then checked on be below box you will see then click ok

Hopefully, these steps may help you

  • No. With all deny permissions like here: permission settings I can still access and create folder inside from cygwin. – Michal Vala Feb 26 '18 at 8:20
  • Did you checked on "Apply these permissions to objects and containers within this container only" ? – Zubair Sultan Feb 26 '18 at 12:34
  • I have this checkbox greyed out – Michal Vala Feb 27 '18 at 8:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.