Re: [1.7] Admins can write to readonly files

2009-08-28 Thread Christian Franke
Corinna Vinschen wrote: On Aug 28 19:57, Christian Franke wrote: This is not true when 'chmod -w ...' was done before the upgrade to 1.7. Cygwin 1.5 sets R/O attribute, then open for write fails with permission denied also on 1.7. That's why 1.7 tries not to set the R/O DOS attribute

Re: [1.7] Admins can write to readonly files

2009-08-28 Thread Corinna Vinschen
On Aug 28 19:57, Christian Franke wrote: > Dave Korn wrote: >> Christian Franke wrote: >> >>> For members of Admin group, Cygwin 1.7 allows to overwrite files without >>> write permission, but Cygwin 1.5 does not. >>> >> >> You are the root user, this is Unix. Of course you can overwrite

Re: [1.7] Admins can write to readonly files

2009-08-28 Thread Christian Franke
Dave Korn wrote: Christian Franke wrote: For members of Admin group, Cygwin 1.7 allows to overwrite files without write permission, but Cygwin 1.5 does not. You are the root user, this is Unix. Of course you can overwrite files without write permission. This is not true when '

Re: [1.7] Admins can write to readonly files

2009-08-28 Thread Dave Korn
Christian Franke wrote: > For members of Admin group, Cygwin 1.7 allows to overwrite files without > write permission, but Cygwin 1.5 does not. You are the root user, this is Unix. Of course you can overwrite files without write permission. > Is this a intended change of 1.7 ? Yep, think so

[1.7] Admins can write to readonly files

2009-08-28 Thread Christian Franke
For members of Admin group, Cygwin 1.7 allows to overwrite files without write permission, but Cygwin 1.5 does not. Is this a intended change of 1.7 ? I would suggest to add a note to http://cygwin.com/1.7/cygwin-ug-net/ov-new1.7.html Testcase (WinXP SP2 and 3, Cygwin 1.7.0-60): $ touch foo $