delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/11/14/19:12:39

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <26355135.post@talk.nabble.com>
Date: Sat, 14 Nov 2009 16:11:41 -0800 (PST)
From: aputerguy <nabble AT kosowsky DOT org>
To: cygwin AT cygwin DOT com
Subject: 'ls' not finding owner/group of some files created by other user
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-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

This is a weird one.

If I use a non-cygwin program such as 'edit' or 'ntemacs' to create a file
under userA, say 'test', then when I list under user A, I get as expected:
-rwxr--r--+ 1 userA None 0 2009-11-14 19:00 test*

However, when I list under userB (who is non-privileged), I get:
-rwxr--r--+ 1 ???????? ???????? 0 2009-11-14 19:00 test*

Now if under userA, I do something seemingly innocuous, say: chmod u+r test
which doesn't even change any permissions (nor ACL's for that matter), the
listing under userB is now correct.

This doesn't happen when I create files in bash directly say by using
'touch'.


Also the ACL for the file is nothing weird for that matter:
# owner: userA
# group: None
user::rwx
group::---
group:SYSTEM:rwx
mask:rwx
other:---

And 'traverse files' is on.

What is going on here?






-- 
View this message in context: http://old.nabble.com/%27ls%27-not-finding-owner-group-of-some-files-created-by-other-user-tp26355135p26355135.html
Sent from the Cygwin list mailing list archive at Nabble.com.


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