delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/02/06/05:24:43

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Wed, 6 Feb 2008 11:23:41 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: CIFS symlinks on network share break Cygwin
Message-ID: <20080206102341.GR5866@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20080204150853 DOT GD5866 AT calimero DOT vinschen DOT de> <E173C70E3D81F74188D2778B96C5CD0D011B4AE2 AT postal1-dog DOT naughtydog DOT com> <20080204205620 DOT GA2720 AT ednor DOT casa DOT cgf DOT cx> <E173C70E3D81F74188D2778B96C5CD0D011B4B5C AT postal1-dog DOT naughtydog DOT com> <E173C70E3D81F74188D2778B96C5CD0D011B4BD0 AT postal1-dog DOT naughtydog DOT com> <02fb01c86795$9aeb5080$2e08a8c0 AT CAM DOT ARTIMI DOT COM> <20080205133450 DOT GB307 AT calimero DOT vinschen DOT de> <032c01c867fd$c573da30$2e08a8c0 AT CAM DOT ARTIMI DOT COM> <20080205142712 DOT GA840 AT calimero DOT vinschen DOT de> <03a301c86835$1a571850$2e08a8c0 AT CAM DOT ARTIMI DOT COM>
MIME-Version: 1.0
In-Reply-To: <03a301c86835$1a571850$2e08a8c0@CAM.ARTIMI.COM>
User-Agent: Mutt/1.5.16 (2007-06-09)
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 Feb  5 20:24, Dave Korn wrote:
> On 05 February 2008 14:27, Corinna Vinschen wrote:
> > you didn't answer my first question.  What exactly happens with the perms?
> > To what values are they set when creating a file?
> 
>   Oops, pardon.  I thought I had posted this yesterday but now I see it's just
> lying around my drafts folder.  My win32 "T:" drive is a netapp share (CIFS
> with NFS perms) and /win/t is a mountpoint to it (system, binmode, noexec)
> that I use as shorthand for /cygdrive notation.
> 
> /win/t/netapp $ ls -la
> total 0
> drwxr-xr-x 1 dk Domain Users 0 Feb  4 15:23 .
> drwxr-xr-x 1 dk Domain Users 0 Jan  1  1970 ..
> /win/t/netapp $ echo $CYGWIN
> ntsec smbntsec notty error_start=C:\cygwin\usr\local\bin\insight.exe
> /win/t/netapp $ touch foo.bar
> /win/t/netapp $ ls -la
> total 0
> drwxr-xr-x 1 dk Domain Users 0 Feb  4 15:23 .
> drwxr-xr-x 1 dk Domain Users 0 Jan  1  1970 ..
> -rw-r--r-- 1 dk Domain Users 0 Feb  4 15:23 foo.bar
> /win/t/netapp $ chmod a+rwx foo.bar
> /win/t/netapp $ ls -la
> total 0
> drwxr-xr-x 1 dk Domain Users 0 Feb  4 15:23 .
> drwxr-xr-x 1 dk Domain Users 0 Jan  1  1970 ..
> -rw-r--r-- 1 dk Domain Users 0 Feb  4 15:23 foo.bar
> /win/t/netapp $

If you run strace on chmod with smbntsec on, do you see error messages
from inside the security.cc sources (get_nt_object_security,
get_info_from_sd, etc)?  If so, I'd be interested to see them, even if
it's just out of curiosity.

>   So, can't chmod easily.  Umask appears at first glance to be respected when
> creating files:

No, don't let umask blind you ;)

What you see is what Cygwin does.  The umask is taken into account when
faking file permissions on file systems not being capable of retrieving
the data by using Windows' file security API.  You will see the same on
FAT, for instance.

> > and a programmer is
> > caring (or paid) enough to actually do it.
> 
>   I'd do it just so that I don't have to go to explorer all the time.

Cool.

> [*] - not even nearly, actually, but anyway it's /one/ of those explorer shell
> extension IXxxxXxxxxx interfaces.

Sigh.  What happened to the good old, clear and simple plain C API?


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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