delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/07/05/21:43:56

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_RW,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Date: Wed, 6 Jul 2011 11:43:34 +1000
Message-ID: <CAOa+a1ZMthv-fvcPgnC_PbGAty2FQXO1CKkVZFd-mcR_BHhUxQ@mail.gmail.com>
Subject: Re: cygwin permissions problem on a network drive
From: Bill Metzenthen <billm713 AT gmail DOT com>
To: cygwin AT cygwin DOT com
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

Corinna Vinschen wrote:
>> If I now try to use cygwin to create anything then it fails (despite
>> it reporting that I have rwx permissions for the directory):
>
> For now, set the mount point for this drive to "noacl".  If you're
> accessing the share via /cygdrive, create a distinct mount point for it.

I'm not sure that I'm doing this the right way.

I created an entry in /etc/fstab and then I got:
$ mount
C:/cygwin/bin on /usr/bin type ntfs (binary,auto)
C:/cygwin/lib on /usr/lib type ntfs (binary,auto)
C:/cygwin on / type ntfs (binary,auto)
H: on /h type ntfs (binary,noacl,posix=0,user)
C: on /c type ntfs (binary,posix=0,user,noumount,auto)

Unfortunately, this didn't fix my problem.

So then for some reason I don't remember, I commented out the
following line from /etc/fstab:
none / cygdrive binary,posix=0,user 0 0

This resulted in my being able to create directories and files on the
network drive.  It came at a cost however because C: was now mounted
on /cydrive/c, so I added and explicit entry for the C: drive in
/etc/fstab and this appears to have fixed the problem:
$ mount
C:/cygwin/bin on /usr/bin type ntfs (binary,auto)
C:/cygwin/lib on /usr/lib type ntfs (binary,auto)
C:/cygwin on / type ntfs (binary,auto)
C: on /c type ntfs (binary,posix=0,user)
H: on /h type ntfs (binary,noacl,posix=0,user)

This has the minor problem that it allows me to get into a mess by umounting /c

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