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:mime-version:from:date:message-id:subject:to :content-type; q=dns; s=default; b=WV1no15zoYVnvYN4N0cpvjqXn7hLi 6PgS4KiA1urbVyV0LUFWPDlQ9Z29AkvTo1x3yRihRlvC3YNHtJN76deR9uSMUpLH nI0Z0vyEEHmYUr6QTf8xGyEqc2dpLAQyOTYV3pL45eu9MjogXDCMqk7j5euxVh3o i2Y0CE7oGgWRv0= 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:mime-version:from:date:message-id:subject:to :content-type; s=default; bh=OH2kU0ov8OrRGAxPWJLZD0YuLNI=; b=wh+ PfuLC1VceCoCfKKfh43zQLd44WY4rV4+f/NDC1vllliiUArOMB8hsJaZGcIPPNe8 p+nRNjCktvrt/I27V/VnjR86FLqma5IbkkJc4zJAHaBefwPqiMefP4BCuBFDrjpc 8UqKkiGXYz6Q3+1nI5fjOUGh+lWr8q9Ov3uWuZdw= 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.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-oi0-f68.google.com X-Received: by 10.202.215.131 with SMTP id o125mr11427344oig.109.1423496242164; Mon, 09 Feb 2015 07:37:22 -0800 (PST) MIME-Version: 1.0 From: diod lightbulb Date: Mon, 9 Feb 2015 16:37:01 +0100 Message-ID: Subject: ls not in sync with chmod (weird problems with file permissions) To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes HI all, Maybe this is a regression. This is linked to the problem reported in this other thread https://cygwin.com/ml/cygwin/2015-02/msg00100.html . I took notice of it right after I updated cygwin (setup.exe 2.867) today. My umask is 022. The drives are NTFS. CYGWIN is set to ntsec even if I just saw today that it is obsolete by now (I also tried setting acl in /etc/fstab but it didn't change the weird behavior described below). 1- For pre-existing files/directories under /cygdrive/d and /cygdrive/e All my file permissions that were correctly reported by ls -l as rw-r--r-- became all of a sudden -rw-rwxr--+ ??? The same for directories where all previously 755 dirs came back as drwxrwxr-x+ 2- I tried to see what happened with a newly created file % cygcheck --version cygcheck (cygwin) 1.7.34 % cd /cygdrive/d/foo % touch buggy % ls -l buggy -rw-rwxr--+ 1 green Users 0 Feb 7 20:07 buggy* % stat -c " %a %u %g" buggy " buggy 674 1000 545 What the hell? I expected 644. % chmod 644 buggy % stat -c " %a %u %g" buggy " buggy 674 1000 545 Oooch, no change??? chmod used to work before today (BTW, same behavior for pre-existing files: chmod has no effect). Worse, using secaudit, I now get % secaudit -v buggy secaudit 1.4.1 : NTFS security data auditing [snip] Interpreted Unix owner 1000, group 0, mode 0777 What? 0777 ???? Bizarrely: % chmod g-w buggy; secaudit -v buggy reported 0677 while ls -l reported no change whatsoever!! 3- Under my home directory (which is also on the D: drive), everything seems to be fine (for both pre-existing files/directories and newly created files) % cd ~; touch doinfine; ls -l doinfine reports rw-r--r-- and secaudit as well as stat report a 644 mode. So I still have the expected (and desired behavior) right under my home directory but nowhere else (even on the same drive). This is really annoying, hope someone can investigate into this. Regards, Green -- 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