• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 816
  • Last Modified:

cygwin sets file permission to 000

I have a folder /cygwin/d/myfolder/
And everytime I save files there, from cygwin if i do an ls -la I see that the files are given permission 000. That actually causes me quite a bit of problem as I rsync this folder to my server and none of the files are accessible. How can I get the files to automatically get a reasonable permission?
  • 2
2 Solutions
Check the "umask" for its value. You can try to set "umask 022" and check whether it works; if yes, add that to your .profile file.
NewtonianBAuthor Commented:
umask is set to 0022 is this different from 022?
No, 0022 is ok.
If you do "touch newfile", what are the permissions of the "newfile"?
If they're OK (644), then the application you use should be checked.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now