delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/07/20/14:08:05

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,TW_JR
X-Spam-Check-By: sourceware.org
Subject: Re: [ -w filename ] returns true when permissions are -r--r--r--
From: Reid Thompson <Reid DOT Thompson AT ateb DOT com>
Reply-To: Reid DOT Thompson AT ateb DOT com
To: cygwin AT cygwin DOT com
In-Reply-To: <1311185147.5730.20.camel@raker.ateb.com>
References: <1311185147 DOT 5730 DOT 20 DOT camel AT raker DOT ateb DOT com>
Date: Wed, 20 Jul 2011 14:07:26 -0400
Message-ID: <1311185246.5730.21.camel@raker.ateb.com>
Mime-Version: 1.0
X-IsSubscribed: yes
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 Wed, 2011-07-20 at 14:05 -0400, Reid Thompson wrote:
> Is this broken?  Or a known windows/cygwin discrepancy?  Or am I missing
> something with my posix/windows file permissions settings
> 
> reid DOT thompson AT ws-jrt ~
> $ ls -rlt afile
> -r--r--r-- 1 reid.thompson Domain Users 6 2011-07-20 14:02 afile
> 
> reid DOT thompson AT ws-jrt ~
> $ if [ -w afile ]; then   echo " file is writeable"; else   echo " file
> is not writeable"; fi
>  file is writeable
> 

$ uname -r
1.7.7(0.230/5/3)



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