3

I am using Cygwin with a dll version of 1.5.19 (yes, out-of-date, I know, but we're doing it for configuration control reasons). All my files (existing and newly created) show up with permissions 644, despite a umask of 022. Also, using chmod doesn't change the permissions. I have ntsec set in the CYGWIN environment variable. I need to be able to add execute permissions; is there anything I can try to fix this or is it a lost cause?


A much later note: I realized that a key part of the problem is that the files I was trying to chmod were in a ClearCase dynamic view, which uses MVFS. I still have not found way to successfully set the execute permissions, though.

4

2 回答 2

6

编辑/etc/passwd以将用户的 GID 的默认值更改为 545(即 NT 'Users' 组)而不是 513('None' 组)。

查看系统范围和/etc/bash.bashrc默认umask 设置。$HOME/.bashrc.bash_profile

即使默认,也请尝试将 NT 系统环境中的 CYGWIN 变量设置为“binmode ntsec”。

让我知道问题是否消失。

于 2009-10-21T09:08:56.783 回答
2

您需要/etc/passwd/etc/group文件以获得权限才能正常工作。

请参阅为什么不起作用chmodCygwin 常见问题解答中

Cgywin 用户指南中的文件权限

于 2008-12-10T20:50:55.670 回答