Skip to main content
2 of 2
Applied syntax highlighting ; Added correct markdown for monospaced code
JW0914
  • 8.3k
  • 7
  • 31
  • 50

You can use icacls in Windows instead of chmod to adjust file permission. To give the current user read permission and remove everything else:

Icacls <file name> /Inheritance:r
Icacls <file name> /Grant:r "%Username%":"(R)"
manjuv
  • 297
  • 2
  • 4