Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Mon, 29 Sep 2003 11:59:35 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: smbntsec broken for drives shared as different user
Message-ID: <20030929095935.GD8626@cygbert.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <006801c3850c$f1561c40$6501a8c0@homepc>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
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@cygwin.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/

