On 6/4/07, Bill Harris <[EMAIL PROTECTED]> wrote:
What are the consequences of putting umask 0000 in /etc/profile?
Files created by cygwin would be created with standard windows permissions.
That sounds as if it could open a security hole.
Yes. Not as bad as a web browser, but yes. Alternatively, you can do something like chmod -R a+x AAA replacing AAA with the contents of extracted zip archives, if you want to stick with the default cygwin behavior.
Why does unzip seem to work sometimes and not others?
I may not have enough detail, but...
As you saw in the crude (as I now know) ll listing from bash, different directories in my ~addons folder have different permissions, ranging from 700 to 755.
That depends on the original permissions, as represented in the zip archiive, I think: (3#8)#:8b0022 (20 b.) 8b700 7 0 0 (3#8)#:8b0022 (20 b.) 8b777 7 5 5 That said, I think this might be something of a red herring. 4 is read permission 2 is write permission 1 is execute permission So 022 umask should not affect execute permission. The real issue, I think, is that cygwin is interpreting permssions stored in zip files as unix permissions and some zip files are not created by unix OS. Hypothetically, that shouldn't matter -- it's just the "everyone" permissiongs that get messed up. But... something is going wrong on your system, and I'm not sure I understand what.
I did a bit more checking. Of an erratic sample of dlls, I found that graphviz/bin/libexpat*.dll don't have execute permissions; all the rest in my sample (of about 3-4) looked okay. I don't see a graphviz lab or demo or I would try it; no time to learn and try it tonight.
I am going to tentatively blame the way different programs interpret the zip file format. It's the only explanation I can think of that accounts for what you are seeing. And, I apologize for side tracking onto umask -- that's write permission (for "Everyone", I think), so should not matter here. -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
