X-Recipient: archive-cygwin@delorie.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:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 q=dns; s=default; b=Exc+vVhsdDsanbv7R1EgFbogSQ4ik3TdtFb1nu6v5r9
	1s+ODe9TGOX9ET3DRRLuPy+fbB4Nf+tPRGs5EElr67udD4AK1d6S0POpVJU1g29G
	Icqmjo8uQXYU52LlILKzgIb+LqEKim+GUYUuruJyVKA7GSp8JdIjEXv8VPq16pXE
	=
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:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 s=default; bh=1nvr2AH0qAeS5etJ9w7SXR20nOo=; b=bUc8EKLceG4aF4X7g
	yiKIbYrk7Jy5D1C58xZ7TOfiy0PUZeAYKL0VoxHOzB5gMWKafUFxMxwBn6zJZ8yu
	lNahroefuVenIxDVTcADXampLBynJikzyiIx++E0i+0yV/anUP5cdmmoYLzZRHYT
	vIRV9hL6goq4CBhHpAxX7STsTQ=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-qc0-f169.google.com
X-Received: by 10.224.88.70 with SMTP id z6mr108646771qal.14.1388442904227;        Mon, 30 Dec 2013 14:35:04 -0800 (PST)
Message-ID: <52C1F516.1010504@gmail.com>
Date: Mon, 30 Dec 2013 17:35:02 -0500
From: Max Polk <maxpolk@gmail.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: chmod Not Working
References: <52C14A0C.1030806@mailme.ath.cx> <0D835E9B9CD07F40A48423F80D3B5A702CDD0A29@USA7109MB022.na.xerox.net>
In-Reply-To: <0D835E9B9CD07F40A48423F80D3B5A702CDD0A29@USA7109MB022.na.xerox.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

On 12/30/2013 2:23 PM, Nellis, Kenneth wrote:
> From: bartels
>> On 12/30/2013 06:16 AM, Nithin Kurien wrote:
>>> When I type the following sequence of commands:
>>>
>>> cd ~; mkdir sample; chmod -R 0700 sample; stat -c "%a %u %g" sample;
>>> rm -rf sample; mkdir sample; chmod -R 0755 sample; stat -c "%a %u %g"
>>> sample
>>>
>>> the output is:
>>>
>>> 770 1001 513
>>> 775 1001 513
>>>
>>> Why is chmod not working?
>>>
>>> OS: Windows 8 Pro 64-bit
>>> Cygwin Setup.exe Version: 2.831 (32-bit)
>> That looks fine to me.
>> What do you expect?
> Presumably because when the OP asked for 700 he got 770, and when
> he asked for 755 he got 775.

The groups magically changing reminds me of the group setuid ("sticky") 
bit being set.  Try a "ls -ld ~" and see what's up with your home 
directory.  And maybe open up your home directory permissions from 
Windows Explorer and see if there are special object inherit options 
coming from parent directories that might be affecting it (if not using 
windows pro, "cd; cacls .")


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

