delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/05/12/15:06:50

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

On May 12 09:47, Keith Christian wrote:
> This permissions problem has existed for awhile, and I'd like to find
> a solution.
> 
> CMD.EXE is able to create files inside directories on a standard
> Windows share, but from a Bash shell on Cygwin, a permission denied
> message occurs, and this is in most if not all directories:
> 
>         -bash: .cpan/build/foo2: Permission denied
> [...]
> Z:\.cpan\build>cacls z:\.cpan\build
> z:\.cpan\build NGT\kchristian:(OI)(CI)C
>                BUILTIN\Administrators:(OI)(CI)F
>                NT AUTHORITY\SYSTEM:(OI)(CI)F
> [...]
> (kchristian AT some-machine) /cygdrive/z>echo foo2 > .cpan/build/foo2
> -bash: .cpan/build/foo2: Permission denied

I created a share with the same permissions as above on a pre-Vista
machine, just as your share.  The sharing permissions are set to
"Change" for everyone.  I then tried to create a file from another
machine using the same echo command in bash.  I can not reproduce your
problem.  Creating the file worked fine.

So I have no idea why this fails for you.  Maybe it's something with
the share permissions or whatever.  Perhaps an strace shows what fails.
Try

  $ strace -o bash.trace bash -c 'echo foo2 > /cygdrive/z/.cpan/build/foo2'

and send the bash.trace file, then we can have a look.


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019