public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Security Settings for directories created in Cygwin (+ executable bit on files)
@ 2014-08-08  8:45 Sebastien Vauban
  2014-08-08 10:43 ` Corinna Vinschen
  2014-08-12 10:51 ` Kurt Franke
  0 siblings, 2 replies; 5+ messages in thread
From: Sebastien Vauban @ 2014-08-08  8:45 UTC (permalink / raw)
  To: cygwin

Hello,

Currently, whenever I create new files from Windows 8 executables (such
as Notepad), they're often flagged as "executable", even for text files!

I've noticed that such a behavior happens when I create a new file in
a directory that has been made FROM CYGWIN (`mkdir ~/test/', for
example).

Indeed, the permissions of CYGWIN-CREATED DIRECTORIES seem very weird:

- "Inherited from"... "None"!

- "All Users" having "Read & Execute" permission on "this folder,
  subfolders and FILES"...

IIUC, when creating a new file from Cygwin, the `umask' (022, in my
case) is respected and new files are not executables then, except if
I require it explicitly (via `chmod').

Though, when creating a new file from a Windows executable, Windows
inherits permissions from the folder where my file gets created --
hence, an executable permission if the directory was created from
Cygwin...

How to correct that?

Asking Cygwin to stop playing with the Windows ACL, by mounting my
personal directories as "noacl"?  Well, that means I won't be able to
use `chmod' anymore, for setting a script file as "executable", then.
And I'll have to use a Windows tool to do so, such as `cacls'.

Is it really so, the integration of Cygwin permissions within Windows?
Or do I miss something?

Best regards,
  Seb

-- 
Sebastien Vauban


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-08-12 12:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-08  8:45 Security Settings for directories created in Cygwin (+ executable bit on files) Sebastien Vauban
2014-08-08 10:43 ` Corinna Vinschen
2014-08-08 14:50   ` Andrey Repin
2014-08-12 10:51 ` Kurt Franke
2014-08-12 12:55   ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).