delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/25/22:05:11

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: [66.206.205.2]
X-Originating-Email: [vxj45 AT hotmail DOT com]
From: "Vishal Jain" <vxj45 AT hotmail DOT com>
To: cygwin AT cygwin DOT com
Subject: connecting to network shares
Date: Fri, 25 Apr 2003 19:04:50 -0700
Mime-Version: 1.0
Message-ID: <Law9-F58xckA1Qcaz5c00009ce1@hotmail.com>
X-OriginalArrivalTime: 26 Apr 2003 02:04:50.0985 (UTC) FILETIME=[38A61990:01C30B98]

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



_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus


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