Skip to main content
Applied syntax highlighting ; Added correct markdown for monospaced code
Source Link
JW0914
  • 8.2k
  • 7
  • 30
  • 50
 

You can use icaclsicacls in windowsWindows instead of chmodchmod 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)"
Icacls <file name> /Inheritance:r
Icacls <file name> /Grant:r "%Username%":"(R)"

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)"
 

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)"
Source Link
manjuv
  • 287
  • 2
  • 4

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)"