delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/25/23:09:17

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
X-Originating-IP: [67.161.27.78]
X-Originating-Email: [vxj45 AT hotmail DOT com]
Reply-To: "Vishal Jain" <vxj45 AT hotmail DOT com>
From: "Vishal Jain" <vxj45 AT hotmail DOT com>
To: <cygwin AT cygwin DOT com>
References: <Pine DOT GSO DOT 4 DOT 44 DOT 0304252222410 DOT 10996-100000 AT slinky DOT cs DOT nyu DOT edu>
Subject: Re: connecting to network shares
Date: Sun, 25 May 2003 20:04:41 -0800
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Message-ID: <Law9-OE63R7j1HaKtKu000018ab@hotmail.com>
X-OriginalArrivalTime: 26 Apr 2003 03:09:04.0578 (UTC) FILETIME=[3191BA20:01C30BA1]

I am using password authentication. I have access to user password. I login,
get the access token,
impersonate and then try to change directory to a network share. It does not
work.
Did I miss your point?
thanks,
Vishal
----- Original Message -----
From: "Igor Pechtchanski" <pechtcha AT cs DOT nyu DOT edu>
To: "Vishal Jain" <vxj45 AT hotmail DOT com>
Cc: <cygwin AT cygwin DOT com>
Sent: Friday, April 25, 2003 6:25 PM
Subject: Re: connecting to network shares


> On Fri, 25 Apr 2003, Vishal Jain wrote:
>
> >
> > Hi,
> > I am running my program as a local user.
> > In my program I impersonate(using seteuid) as a domain user and try to
> > change directory(chdir) to a network share.
> > It does not let me do that. If I create a file, it shows owner as the
domain
> > user. So impersonation is working.
> > If I use explorer and connect as a domain user to a network share, and
then
> > run my program, it works.
> >
> > How can I connect to a network share in my program?
> > It seems impersonation is not enough.
> > Thanks,
> > Vishal
>
> The short answer is: you can't, unless you use password authentication.
> For details, see
> <http://cygwin.com/cygwin-ug-net/ntsec.html#NTSEC-RELEASE1.3.3>.
> The previous section,
> <http://cygwin.com/cygwin-ug-net/ntsec.html#NTSEC-SETUID>, might also be
> of interest.
> Igor
> --
> http://cs.nyu.edu/~pechtcha/
>       |\      _,,,---,,_ pechtcha AT cs DOT nyu DOT edu
> ZZZzz /,`.-'`'    -.  ;-;;,_ igor AT watson DOT ibm DOT com
>      |,4-  ) )-,_. ,\ (  `'-' Igor Pechtchanski
>     '---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
>
> Knowledge is an unending adventure at the edge of uncertainty.
>   -- Leto II
>
>

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