delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/06/07/12:05:05

X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
References: <46682824 DOT 9070507 AT sgi DOT com>
Subject: RE: directory listing differences
Date: Thu, 7 Jun 2007 17:03:23 +0100
Message-ID: <002f01c7a91d$601a23a0$2e08a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <46682824.9070507@sgi.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On 07 June 2007 16:46, Joseph Michaud wrote:


> One interesting tidbit is that if, from the bash shell, I invoke
> a Windows CMD shell, then that CMD shell similarly doesn't see the
> file.
> 
> I conclude from this that somehow the bash shell doesn't have
> some appropriate privilege and that bash's children similarly
> lack this privilege, but I can't figure out why two files with
> seemingly similar permissions are different.

  To processes with different access tokens, "seemingly" similar permissions
aren't.  As a simple example, consider a file with "rwxr-x---" perms.  Your
access perms will be very different if you are logged in as the user who owns
the file compared with if you log in as a different user in the file's group
as compared to if you log in as another user who isn't in that group at
all....
 
> I note that I see this problem on a Windows 2003 Compute Cluster Server
> domain controller head node (and its compute nodes) but not
> not on a Windows XP 64 laptop.  (Perhaps something with domain
> controller security policy is affecting this...)

  Almost certainly so.
 
> Any tips on what other info I can look for would help.

  Use Process Explorer to look at the tokens of the two different processes
(cmd launched by itself, cmd launched from bash) and see what's different.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019