?
Solved

cygwin sets file permission to 000

Posted on 2011-04-28
3
Medium Priority
?
808 Views
Last Modified: 2013-11-15
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?
0
Comment
Question by:NewtonianB
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
JIEXA earned 2000 total points
ID: 35489686
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.
0
 

Author Comment

by:NewtonianB
ID: 35502254
umask is set to 0022 is this different from 022?
0
 
LVL 8

Assisted Solution

by:JIEXA
JIEXA earned 2000 total points
ID: 35506307
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.
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are like me and like multiple layers of protection, read on!
The core idea of this article is to make you acquainted with the best way in which you can export Exchange mailbox to PST format.
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question