X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Thu, 12 May 2011 23:40:44 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: CMD.EXE able to create files in directories on a shared drive, but bash in cygwin is unable to
Message-ID: <20110512214044.GL3020@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <BANLkTimsOOZvBAeXgJczJg8KzD9qy1GsLg@mail.gmail.com> <20110512190604.GH3020@calimero.vinschen.de> <BANLkTinaGtesoVBW-jbse-JYSCTasrTfCw@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <BANLkTinaGtesoVBW-jbse-JYSCTasrTfCw@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On May 12 15:17, Keith Christian wrote:
> Corinna, the bash.trace output is attached.  Thank you for checking
> into this problem.

But I can't really help.  The problem is that the Windows call to open
tjhe file simply fails:

39  146109 [main] bash 2020 fhandler_base::open: C0000022 = NtCreateFile (0x0
, 40160080, \??\Z:\.cpan\build\foo2, io, NULL, 80, 7, 5, 4020, NULL, 0)

The return value C0000022 is STATUS_ACCESS_DENIED which is equivalent
to the Windows error 5, ERROR_ACCESS_DENIED.

The requested access bits are:

  GENERIC_WRITE | SYNCHRONIZE | WRITE_DAC | READ_CONTROL | FILE_READ_ATTRIBUTES

Maybe your server settings don't like the WRITE_DAC part?  As I said, I
tried it with identical directory permissions and share permissions
"Change" for everyone, the server was XP SP3.  What server machine are
you running and what are the share settings of that share?  Is your
account a normal user account or an admin account?


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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

