I try to deny access to reading all

chmod a=--- file.txt 

Does not work.

By ls -l file permissions are still -r--r--r--

How can this be fixed? Environment ОС Windows 7 x64 , bash shell .

UPD. Alas, chmod ar did not work

 user@Lenovo MINGW64 ~/Desktop/Новая папка $ ls -l total 0 -rw-r--r-- 1 user 197121 0 мар 9 18:18 test.txt user@Lenovo MINGW64 ~/Desktop/Новая папка $ chmod ar test.txt user@Lenovo MINGW64 ~/Desktop/Новая папка $ ls -l total 0 -rw-r--r-- 1 user 197121 0 мар 9 18:18 test.txt 
  • 2
    chmod ar for example - Mike
  • Alas. This option did not work. The code listing in the UPD to the question .. - Skif
  • one
    So you have windows, just now paid attention to it. I think access rights under win are emulated, because under win there is a completely different system of rights (for example, there is no concept user, group, and others) and something tells me that you need to edit rights in NTFS itself, and the niksovsky chmod simply does not know how - Mike
  • icacls tried? - don Rumata
  • This is directly dependent on the original file system. On top of this, as already mentioned above, the emulation layer, which also can not support everything. - 0andriy

0