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]

connecting to network shares



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/


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