无法在Windows上打开使用Cygwin修改的文件,在ls -l输出中提示

前端之家收集整理的这篇文章主要介绍了无法在Windows上打开使用Cygwin修改的文件,在ls -l输出中提示前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我无法再打开下面输出中指示的tabs.html和tabs.js文件(第四和第三).使用cygwin我给它们应用了一个补丁.

我相信线索在ls -l输出中.具体来说,与其他文件不同,如果这是* nix而不是Windows / Cygwin,通常是权限信息的末尾.

在第一个字段中,我可以打开的文件有一系列破折号,以加号结尾:’———-‘但是我不能再打开的文件没有终止”. ”表示什么以及如何修改权限以使其恢复,请记住这是使用Cygwin(在Windows 7上),如果这有所不同.

提前致谢:

  1. ----------+ 1 George None 144 Jun 14 17:10 tabs.css
  2. ---------- 1 George None 3165 Jun 15 06:26 tabs.html
  3. ---------- 1 George None 4084 Jun 15 06:26 tabs.js
  4. ----------+ 1 George None 252 Jun 14 17:10 tabs-adv.css
加号表示文件具有不映射到POSIX权限的备用访问控制方法集.即Windows ACL或类似的东西.你需要检查带有符号的文件,找出它是什么,可能在Cygwin之外.这些文件很可能是由非Cygwin知识二进制文件创建或修改的.

您还可以使用getfacl,setfacl,cacls,xcacls来查看或设置非POSIX映射的权限.

另一个选项是添加POSIX权限,以便您的Cygwin用户可以访问它们,虽然我不确定它们将如何与其他权限进行交互,但您可以尝试,chmod 640 tabs *以查看它是否有帮助.

这是来自Cygwin的信息,

  1. Following the file mode bits is a single character that specifies
  2. whether an alternate access method such as an access control list
  3. applies to the file. When the character following the file mode
  4. bits is a space,there is no alternate access method. When it is
  5. a printing character,then there is such a method.
  6.  
  7. GNU `ls' uses a `.' character to indicate a file with an SELinux
  8. security context,but no other alternate access method.
  9.  
  10. A file with any other combination of alternate access methods is
  11. marked with a `+' character.

猜你在找的Windows相关文章