delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/18/18:23:09

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.2.1.2.0.20050818181452.04b0de78@pop.prospeed.net>
Date: Thu, 18 Aug 2005 18:22:04 -0400
To: David Abrahams <dave AT boost-consulting DOT com>, cygwin AT cygwin DOT com
From: Larry Hall <lh-no-personal-replies-please AT cygwin DOT com>
Subject: Re: Permissions and Shared Folders
In-Reply-To: <ubr3wed6p.fsf@boost-consulting.com>
References: <ubr3wed6p DOT fsf AT boost-consulting DOT com>
Mime-Version: 1.0

At 12:33 PM 8/17/2005, you wrote:

>I must really be missing something here; I hope someone can give a
>brief explanation and (as a bonus) direct me to where I can find out
>more.  
>
>I've been trying to copy files off a Windows XP shared folder in Windows
>explorer, and it keeps telling me that I don't have permission to do
>so.  When I look at the files permissions with ATTRIB, I see that it
>is read-only, and when I look at the file with DIR /Q, I see that its
>owner is PENGUIN\dave.  That's the username under which I've mounted
>the drive.  
>
>So then it occurs to me, maybe Cygwin permissions are getting in the
>way somehow.  I do a chmod -R g+r on the directory and presto, I can
>copy files!  
>
>What confuses me about this is that:
>
>  a.  I'm connected as the owner of the file, so why should group
>      permissions make any difference?


Dunno.  I'd have to see the outpit of 'cals <file>'.  Perhaps read 
permission has been specifically denied for the group.


>  b.  Windows XP doesn't seem to have the notion of group permissions.
>      I can find "Groups" if I dig hard, in Administrative Tools>
>      Computer Management, but I don't see any indication that I can
>      set or view group permissions.  On the other hand, what are
>      Groups for if not controlling access?


Windows has groups.  You found'em after all! ;-)


>So, can anyone explain this?  Also, is there a comprehensive overview
>of the relationship between the Cygwin and Windows filesystems
>somewhere?


Cygwin doesn't have it's own filesystem.  It uses Windows.  I think what
you're looking for is information on mapping of Windows ACLS into Cygwin 
POSIX permissions.  You can check out  the Cywgin User's Guide for that
info.  This should be a good start:

  <http://cygwin.com/cygwin-ug-net/ntsec.html>



--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


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