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 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> <7e917c730909030838s65762371g49be06d2c67f84de AT mail DOT gmail DOT 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 AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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