This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: connecting to network shares


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]