AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 399097
Accepted
Dexygen
Dexygen
Asked: 2012-06-16 02:39:42 +0800 CST2012-06-16 02:39:42 +0800 CST 2012-06-16 02:39:42 +0800 CST

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

  • 772

我无法再打开下面输出中指示的 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
windows cygwin file-permissions ls
  • 1 1 个回答
  • 1213 Views

1 个回答

  • Voted
  1. Best Answer
    EightBitTony
    2012-06-16T03:28:11+08:002012-06-16T03:28:11+08:00

    加号表示文件具有不映射到 POSIX 权限的替代访问控制方法集。即Windows ACL 或类似的东西。您需要检查带有 + 号的文件以找出可能在 Cygwin 之外的文件。这些文件很可能是由非 Cygwin 感知二进制文件创建或修改的。

    您还可以使用getfacl、setfacl、cacls、xcacls查看或设置非 POSIX 映射权限。

    另一种选择是也添加 POSIX 权限,以便您的 Cygwin 用户可以访问它们,尽管我不确定他们将如何与附加权限交互,但您可以尝试chmod 640 tabs*看看是否有帮助。

    这是来自info lsCygwin,

     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.
    
    • 4

相关问题

  • 知道任何适用于 Windows 的快速可编写脚本的 ftp 客户端吗?[关闭]

  • 如果 Windows 服务崩溃,如何自动重新启动它?

  • 无法安排任务(访问被拒绝)

  • 物理机重启时自动重启虚拟机(VMWare)

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve