www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/10/06/04:48:07

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Wed, 6 Oct 2010 10:47:40 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: In what way is /cygdrive special WRT to permissions?
Message-ID: <20101006084740.GS5480@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <9872BD92701C494686D002F1620610D0 AT ahallpc>
MIME-Version: 1.0
In-Reply-To: <9872BD92701C494686D002F1620610D0@ahallpc>
User-Agent: Mutt/1.5.20 (2009-06-14)
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 Oct  5 15:40, Andy Hall wrote:
> If instead, I map F: to /cygdrive/c with the following entry in /etc/fstab
> 
> F: /cygdrive/f smbfs binary,noacl 0 0
> 
> mount shows
> 
> $ 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)
> F: on /cygdrive/f type smbfs (binary,noacl)
> C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)
> 
> And ls -l of /cygdrive/f shows
> 
> $ ls -l /cygdrive/f
> total 2048
> drwxrwxr-x 36 ???????? ???????? 0 2010-10-04 16:30 builds
> drwxrwxr-x 17 ???????? ???????? 0 2010-10-04 15:23 releases
> [...]
> Why am I getting -1 for the uid and gid when I mount to /cygdrive/f but not
> to /repos1?

That's a restriction of the cygdrive prefix handling.  You can't
override the cygdrive mount options for a single drive.  It's an
all or nothing thingy.  I guess it would help to refuse such paths
in /etc/fstab or mount(1), or at least improve the documentation,
but, well, http://cygwin.com/acronyms/#SHTDI.


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