【问题标题】:chmod not doing anything in Cygwinchmod 在 Cygwin 中没有做任何事情
【发布时间】:2016-03-29 15:11:52
【问题描述】:

我有一个 bash 脚本,我想在 Cygwin 中使其可执行。所以我跑了chmod 755 file.sh,但它什么也没做。这是chmod命令前后的文件:

-rw-r--r-- 1 Myname None  234 Mar 29 17:05 file.sh

知道如何让它工作吗?

【问题讨论】:

  • 我无法重现您的问题。当我在给定文件上运行您的命令时,我看到 -rwxr-xr-x 符合预期。

标签: cygwin chmod


【解决方案1】:

好的,我发现了问题所在。这是因为我更改了我的 /etc/fstab 文件以解决文件权限的另一个问题,特别是我将其设置为:

none /cygdrive cygdrive binary,noacl,posix=0,user 0 0

但由于它引起了问题,我现在已将其恢复为默认状态:

none /cygdrive cygdrive binary,posix=0,user 0 0

chmod 没有更多问题了。

【讨论】:

    猜你喜欢
    • 2012-09-07
    • 2016-10-02
    • 2013-09-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多