File permissions in cygwin and MVFS

I use Cygwin with dll version 1.5.19 (yes, deprecated, I know, but we do this for configuration management purposes). All my files (existing and newly created) are displayed with 644 permissions, despite umask from 022. In addition, using chmod does not change 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 or is this a lost thing?


A significantly later note: I realized that the key part of the problem is that the files I'm trying to use chmod were in a ClearCase dynamic view that uses MVFS. I still haven't found a way to successfully set execute permissions.

+3
source share
2 answers

Change /etc/passwd to change the default GID for your user to 545 (i.e., NT user group) instead of 513 (No group).

Browse system-wide /etc/bash.bashrc , $HOME/.bashrc and .bash_profile for standard umask settings.

Even if by default, try setting the CYGWIN variable in the NT system environment to "binmode ntsec".

Let me know if the problems go away.

+6
source

You need the /etc/passwd and /etc/group files for the permissions to work properly.

See Why does chmod not work? in Cygwin Questions

and

File Permissions in the Cgywin User Guide

+2
source

All Articles