delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/08/07/14:50:10

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type; q=dns; s=default; b=Ac85L5Dr4+kvgAQi
Juw4en9SJWv9i6XzGT+B4M/gOye/+mpbBEJj2YGGPVpwUs+uKIoEb81EJrw/OEKk
gViV++kKXwHOzLQFP8DLcclZug9jo5a42TQWlb0h7FvnuFaIwj1UnS9h9FIUU6E+
wNEyTpBRO3SzIuDhOaXFpuU3D8I=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type; s=default; bh=EseLdYQ1I9MA3s/OGB6lqr
jgRqI=; b=fyoxP81YPp5F/JcYnkTQdrDcpcBNza1a1Q122OQ6peFLzvTOYBLKvj
LRgr16mYwuS2Wnf0uiBsaqzC0hW5BkZa/bcGpC/zzLDzfaJbk9ZscSlw7eT6y75l
SASkQmme+dF/LxwY9TyfsAXAofZKIPcBTj2Bqo0JK3s3x30/CVAuY=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
X-Spam-SWARE-Status: No, score=1.8 required=5.0 tests=AWL,BAYES_00,FSL_HELO_BARE_IP_2,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_NUMERIC_HELO,RDNS_NONE,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.1
To: cygwin AT cygwin DOT com
From: david AT adboyd DOT com (J. David Boyd)
Subject: Re: chmod questions
Date: Wed, 07 Aug 2013 14:49:35 -0400
Lines: 35
Message-ID: <gjubpptpibeo.fsf@W0144758.usac.mmm.com>
References: <479059e9-1e1f-4289-9bfb-98dac1c1fafe AT default>
Mime-Version: 1.0
User-Agent: Gnus/5.1299999999999999 (Gnus v5.13) Emacs/24.3 (cygwin)

Drew Adams <drew DOT adams AT oracle DOT com> writes:

> I have read various info regarding trying to make Cygwin's `chmod'
> work as (I) expected, including the Cygwin FAQ and user guide.
> I am using Windows 7 with an NTFS disk.  My user and group are
> defined as they should be AFAIK.
>
> Two questions in this regard:
>
>  . is "chmod a-w" supposed to set the Windows Read-only attribute
>    on Windows 7?
>
>  . is "chmod a-w" supposed to cause "ls -l" to show -r-r-r on
>    Windows 7?
>
> When I do `chmod a-w' it does not seem to have any effect.  The
> target file is still writable.  Can someone please tell me what
> I'm missing?  Thx.

Works for me.

Here's a file on my system:

$ ls -ltr boxes.txt
-rw-rw-rw-+ 1 A4J0PZZ Administrators 45 Aug  5 12:46 boxes.txt


When I run chmod a-w boxes.txt, I get

$ ls -ltr boxes.txt
-r--r--r--+ 1 A4J0PZZ Administrators 45 Aug  5 12:46 boxes.txt

and the file is no longer writeable.

That's not what you are seeing?  I'm on Windows 7 with an NTFS disk as well.


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