Default permission for new file cygwin on Windows 7

Joined
Jan 5, 2015
Messages
14
Reaction score
0
I am using cygwin on Windows 7 professional.

When I create new files such as MyNewFile.java it seems to get default permission set to 755. This is not what I want. I want it to be 644 for regular files.

This is very annoying to have to change permissions every time I create new files outside of the cygwin terminal (cp from cygwin terminal works fine and just keeps existing permissions as expected, even creating new files from inside cygwin works).

Alternatively, is there any way in git to auto-change *.myextension files to always have a specific permission?

If not, is there any way to recursively chmod 644 all *.myextension files recursively under a folder (without affecting folder permissions!)?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top