如何在Mingw或Cygwin下更改权限?
我的 ~/.ssh/id_rsa 我相信它应该是640.主机是Windows 10,我有git-bash 2.17.0和MobaXterm 10.5-3582。 如果我试着 改变组 ,git-bash会失败 $ chown :Users ~/.ssh/id_rsa* chown: invalid group: ‘:Users’ 但是,MobaXterm将改变该组织。无论如何,既不会更改权限,也不会使用 chmod 600 ~/.ssh/id_rsa 要么 setfacl -s u::rw-,g::---,o:--- ~/.ssh/id_rsa 文件权限保持不变: $ ll ~/.ssh/id_rsa -rw-r--r-- 1 MyUser UsersGrp 3243 Nov 30 18:24 /home/mobaxterm/.ssh/id_rsa 编辑: $ getfacl /home/mobaxterm/.ssh/id_rsa # file: /home/mobaxterm/.ssh/id_rsa # owner: MyUser # …