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