delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/09/29/05:59:46

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Mon, 29 Sep 2003 11:59:35 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: smbntsec broken for drives shared as different user
Message-ID: <20030929095935.GD8626@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <006801c3850c$f1561c40$6501a8c0 AT homepc>
Mime-Version: 1.0
In-Reply-To: <006801c3850c$f1561c40$6501a8c0@homepc>
User-Agent: Mutt/1.4.1i

On Sat, Sep 27, 2003 at 11:35:12AM -0400, Michael Condict wrote:
> There are many reasons in Windows why you need to map a shared drive onto
> your system by connecting to it with an explicit username and password, different
> from the current logged in user.  The most important reason is that you are logged
> into a desktop as a local (non-domain) user and want to access files shared by
> another system.  No local user on your system has the same SID as any user on
> any other system, even if the user-name is the same.  Both Windows and CYGWIN
> treat the two users as distinct.
> 
> But when a local user y connects to a shared drive as user x, he should have all the rights
> of remote user x to access files and directories on that drive.  Windows gets this
> right, but CYGWIN's smbntsec does not.  It thinks you have the rights of user y.

The problem is that in contrast to Windows itself, Cygwin doesn't know 
as which user you connected to a share.  At the moment I don't know
which call would return that information.  Any hint appreciated.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

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