X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Mon, 21 Sep 2009 12:43:19 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: 1.7: cygdrive files readonly by default
Message-ID: <20090921104319.GF20981@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <7e917c730909020710i2fc5afeence456eb5300f722@mail.gmail.com> <7e917c730909021430j65d0bee9h5e7091e9dd82c065@mail.gmail.com> <4A9EE630.1040903@cygwin.com> <7e917c730909021506w2480f5fctaace18f6d93bbb0a@mail.gmail.com> <4A9EEE62.5020305@cygwin.com> <7e917c730909021555k2176db54i139898c1ce2d8cd4@mail.gmail.com> <loom.20090903T104513-525@post.gmane.org> <7e917c730909030838s65762371g49be06d2c67f84de@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <7e917c730909030838s65762371g49be06d2c67f84de@mail.gmail.com>
User-Agent: Mutt/1.5.19 (2009-02-20)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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

