www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/09/21/06:43:38

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 21 Sep 2009 12:43:19 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: 1.7: cygdrive files readonly by default
Message-ID: <20090921104319.GF20981@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <7e917c730909020710i2fc5afeence456eb5300f722 AT mail DOT gmail DOT com> <7e917c730909021430j65d0bee9h5e7091e9dd82c065 AT mail DOT gmail DOT com> <4A9EE630 DOT 1040903 AT cygwin DOT com> <7e917c730909021506w2480f5fctaace18f6d93bbb0a AT mail DOT gmail DOT com> <4A9EEE62 DOT 5020305 AT cygwin DOT com> <7e917c730909021555k2176db54i139898c1ce2d8cd4 AT mail DOT gmail DOT com> <loom DOT 20090903T104513-525 AT post DOT gmane DOT org> <7e917c730909030838s65762371g49be06d2c67f84de AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <7e917c730909030838s65762371g49be06d2c67f84de@mail.gmail.com>
User-Agent: Mutt/1.5.19 (2009-02-20)
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 Sep  3 10:38, Vince Indriolo wrote:
> Interesting, the location of the file seems to matter.
> [...]
> For a file on my desktop:
>     $ ls -l foo
>     -rwx------+ 1 vince None 6 Sep  3 10:28 foo
>     $ ls -l .\\foo
>     -rw-r--r-- 1 vince None 6 Sep  3 10:28 .\foo

It's not the location, it's the use of backslashes.  Native Windows
paths are treated differently than POSIX paths:

  Native Windows path ==> Windows default security
  POSIX path          ==> POSIX security

Cygdrive paths are mounted as non-POSIX paths by default.  See
the output of mount:

  $ mount
  [...]
  C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)
  D: on /cygdrive/d type vfat (binary,posix=0,user,noumount,auto)

If you want to change that, create a cygdrive entry in /etc/fstab
which sets the mount option "posix=1".


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