Mail Archives: cygwin/2011/08/04/17:25:51
X-Recipient: | archive-cygwin AT delorie DOT com
|
X-SWARE-Spam-Status: | No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_TV,T_TO_NO_BRKTS_FREEMAIL
|
X-Spam-Check-By: | sourceware.org
|
To: | cygwin AT cygwin DOT com
|
From: | Paul <Paul DOT Domaskis AT gmail DOT com>
|
Subject: | Re: Cygwin DLL 1.7.9 on Windows 7: Can't create files/folders on network drive
|
Date: | Thu, 4 Aug 2011 21:25:15 +0000 (UTC)
|
Lines: | 65
|
Message-ID: | <loom.20110804T231411-256@post.gmane.org>
|
References: | <loom DOT 20110804T165202-684 AT post DOT gmane DOT org> <loom DOT 20110804T171947-392 AT post DOT gmane DOT org> <20110804154502 DOT GD21692 AT calimero DOT vinschen DOT de> <loom DOT 20110804T180044-715 AT post DOT gmane DOT org> <20110804161518 DOT GG21692 AT calimero DOT vinschen DOT de> <loom DOT 20110804T194437-42 AT post DOT gmane DOT org> <loom DOT 20110804T215606-594 AT post DOT gmane DOT org>
|
Mime-Version: | 1.0
|
User-Agent: | Loom/3.14 (http://gmane.org/)
|
X-IsSubscribed: | yes
|
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm
|
List-Id: | <cygwin.cygwin.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
|
Paul <Paul.Domaskis <at> gmail.com> writes:
>Paul <Paul.Domaskis <at> gmail.com> writes:
>>Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes:
>>> On Aug 4 16:04, Paul wrote:
>>>> Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes:
>>>>> On Aug 4 15:20, Paul wrote:
>>>>>> At my workplace, I upgraded to Windows 7 Enterprise 32-bit and
>>>>>> installed Cygwin DLL 1.7.9. I can create files/folders in the
>>>>>> c:/cygwin/home/MyUserName subtree, but I can't seem to create
>>>>>> files/folders in my personal filespace on a network drive. My
>>>>>> filespace is mapped to "i:/", which I access as /cygdrive/i .
>>>>>> I own it and have write permission, and I can also create
>>>>>> files/folders in that subtree using Windows Explorer. I had no
>>>>>> problems when I was using Windows XP (and a much older version
>>>>>> of Cygwin).
>>>>>>
>>>>>> <...snip...>
>>>>>>
>>>>>> ...the problem with creating
>>>>>> files/folders on the network drive is "Permission denied". I
>>>>>> can, however, use "rm -rf" to remove folders.
>>>>>
>>>>> Try the latest developer snapshot from
>>>>> http://cygwin.com/snapshots/ Just exchanging the DLL is enough.
>>>>> It should fix that problem.
>>>>
>>>> Is "exchanging
>>>> the DLL" merely overwriting the DLL file with the new one?
>>>
>>> Yes. But keep a copy of the original, just in case.
>>
>> Works like a charm. Thanks, Corinna.
>
> Correction. It works except when doing a "cp -p" e.g.:
>
> cp -p /c/Local/Path/File.txt /i/network/path/File.txt
>
> I have write permission at both the source and destination.
>
> On the other hand, using tar to transport a file from the local
> directory to
> the network directory seems to work:
>
> cd /c/Local/Path
> tar cf - File.txt | ( cd /i/network/path ; tar xf - )
I think I know the cause of the permission denial for "cp -p". The source
files on the local folder have read and execute permission bits set
for "group" and "other". This probably conflicts with the permissions set on
the network drive (which is my own personal filespace). When I copy files, I
get the message:
cp: preserving permissions for `./Temp.txt': Permission denied
However, the file still copies.
When I use the tar command above, it doesn't really respect the original
permission bits when untarring at the destination. It turns on the user
execution bit. The following test shows that the user execution bit is
suppose to be off:
cd /c/Local/Path
tar cf - File.txt | tar tvf -
P.D.
--
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 -