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 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: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 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