我不能再打开下面输出中指出的tabs.html和tabs.js文件(四分之三和三分之一)。 使用cygwin我给他们应用了一个补丁。
我相信线索是在ls -l输出中。 具体来说,与其他文件不同的是,如果这是* nix而不是Windows / Cygwin,通常是权限信息的末尾。
在第一个字段中,我可以打开的文件有一系列以加号结尾的破折号:“———- +”,但是我无法再打开的文件没有终止符“+” ”。 “+”意味着什么,如何修改权限以便恢复权限,并记住这是使用Cygwin(在Windows 7上),如果这有所帮助。
提前致谢:
----------+ 1 George None 144 Jun 14 17:10 tabs.css ---------- 1 George None 3165 Jun 15 06:26 tabs.html ---------- 1 George None 4084 Jun 15 06:26 tabs.js ----------+ 1 George None 252 Jun 14 17:10 tabs-adv.css
加号表示文件具有不映射到POSIX权限的备用访问控制方法集。 即Windows ACL或类似的东西。 你需要用+符号来检查文件,找出可能在Cygwin之外的东西。 这很可能是由非Cygwin感知二进制文件创build或修改的。
您还可以使用getfacl , setfacl , cacls , xcacls来查看或设置非POSIX映射权限。
另一种select是添加POSIX权限,以便您的Cygwin用户可以访问它们,尽pipe我不确定它们将如何与其他权限进行交互,但您可以尝试chmod 640 tabs*以查看是否有帮助。
这是从Cygwin的info ls ,
Following the file mode bits is a single character that specifies whether an alternate access method such as an access control list applies to the file. When the character following the file mode bits is a space, there is no alternate access method. When it is a printing character, then there is such a method. GNU `ls' uses a `.' character to indicate a file with an SELinux security context, but no other alternate access method. A file with any other combination of alternate access methods is marked with a `+' character.