Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Fri, 25 Apr 2003 22:25:22 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Vishal Jain cc: cygwin AT cygwin DOT com Subject: Re: connecting to network shares In-Reply-To: Message-ID: Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 . The previous section, , 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/