Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-Id: <5.1.0.14.2.20020713220237.02acf568@pop3.cris.com> X-Sender: rrschulz AT pop3 DOT cris DOT com Date: Sat, 13 Jul 2002 22:05:37 -0700 To: Jehan , cygwin AT cygwin DOT com From: Randall R Schulz Subject: Re: Permission denied on a windows share In-Reply-To: <3D3101AC.7050905@bravobrava.com> References: <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20020713194509 DOT 02bb9210 AT pop3 DOT cris DOT com> <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20020713204337 DOT 02acf938 AT pop3 DOT cris DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Jehan, The reason is the mapping between Cygwin's Unix / POSIX permissions and Windows is not reversible. Windows permissions are far more refined, so it is inevitable that in at least one case (in reality, many cases), there are multiple distinct Windows permissions that map to a single Cygwin / Unix / POSIX file "mode." Cygwin will "leave it to Windows" if you turn of "ntsec" and / or "ntea." Randall Schulz At 21:44 2002-07-13, you wrote: >Randall R Schulz wrote: >>One thing is certain, Cygwin cannot override Windows permissions. If you >>can read (or write or remove, etc.) the file from a Cygwin application, >>you can read (write, remove) it from a Windows native app. I'm not >>certain the reverse is true, however. > >Obviously it isn't since I can modify a file with Notepad but I can't >modify the same file with Cygwin. The question is why. Cygwin seems to >check if me (local user jehan) has write access to the file (the answer is >no, a local user can't exists on a domain anyway, it's the other me >(domain user jehan) that has write access). But why does cygwin check >that, why doesn't it leave it to Windows to verify the permissions? > > >>Sorry to equivocate so, but since you seemed a little desperate, I >>figured I'd try to help. > >Not desperate. Frustrated more likely. You see, I'm jongling between a >Unix box (where my account is) and Windows. So there are files I share >between the two (like the .bashrc, .ssh and the like). And not being able >to write to those files can be annoying. > > Jehan -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/