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:from:to:subject:date:message-id:references :in-reply-to:content-type:content-transfer-encoding :mime-version; q=dns; s=default; b=esPQ+KCv4QG+5NqkSuwqL2QPzs3cR 9Lrl8Dnx9MP8dDAK6cDhmN6i1NXXwkvlxnTOA/Rqc7U4S1rOmGveHksdOxen2vD+ RQsXl2ugHC4HYFMaQxoVCsyJj4Js/9fbEaDA58FK2KgC1u7wSk1HUIoQ85uw5uzU x+w2zfyb8dakgY= 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:from:to:subject:date:message-id:references :in-reply-to:content-type:content-transfer-encoding :mime-version; s=default; bh=R9ArxTOpP7KMu+YUEXmyD9KgXsY=; b=deD oSR20kWZIceZWRXfs3pVh4ZUsLq1wRs2b8LYoZxG7XoeFl5fnX7YkdZFHqlSbR6T BBtnSUAGrmq1Jx8BX+fH/m13QgrmZdjicE6R/y2CptQEZUCyTaFRngqEChimpIQA ZIeCt3WJ/Pc44FvHMayzssVzx5GQbK7vnIUXq5SA= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.7 required=5.0 tests=AWL,BAYES_20 autolearn=ham version=3.3.2 X-HELO: USA7109MR006.ACS-INC.COM From: "Nellis, Kenneth" To: "cygwin AT cygwin DOT com" Subject: RE: chmod Not Working Date: Mon, 30 Dec 2013 19:23:10 +0000 Message-ID: <0D835E9B9CD07F40A48423F80D3B5A702CDD0A29@USA7109MB022.na.xerox.net> References: <52C14A0C DOT 1030806 AT mailme DOT ath DOT cx> In-Reply-To: <52C14A0C.1030806@mailme.ath.cx> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id rBUJNTaD019088 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. --Ken Nellis -- 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