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