473,399 Members | 3,401 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Network Share Permissions

I am working on a database imaging application. Links to the images are
stored in the database and accessed via a shared network drive. This network
share is mapped when the user logs on to Windows (using XP), and they have
“read” access only.

My challenge is I need the application to have “write” access during certain
functions, but I don’t want the user to have this access all the time. My
intent is for the app to impersonate a user with access to “write” to this
share during these times, and then switch back.

I have been able to successfully do the impersonation, (using
http://msdn.microsoft.com/library/de...asp?frame=true)
but am unable to “write” to the network share (get message that user does not
have permission)

My question – am I going about this correctly? Will the new identity
supersede the security in place when the drive is mapped during the initial
Windows log on? If not, is there another way I might accomplish the same
thing?

Thank you

Nov 21 '05 #1
1 1751

"Shallotx" <Sh******@discussions.microsoft.com> wrote in message
news:A2**********************************@microsof t.com...
I am working on a database imaging application. Links to the images are
stored in the database and accessed via a shared network drive. This
network
share is mapped when the user logs on to Windows (using XP), and they have
"read" access only.

My challenge is I need the application to have "write" access during
certain
functions, but I don't want the user to have this access all the time. My
intent is for the app to impersonate a user with access to "write" to this
share during these times, and then switch back.

I have been able to successfully do the impersonation, (using
http://msdn.microsoft.com/library/de...asp?frame=true)
but am unable to "write" to the network share (get message that user does
not
have permission)

My question - am I going about this correctly? Will the new identity
supersede the security in place when the drive is mapped during the
initial
Windows log on?


No. You will have to disconnect from the network share and reconnect with
the new credentials.

http://support.microsoft.com/kb/106211/EN-US/
David
Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Rick Csucsai | last post by:
I have an ASP app that calls an object on the web server which goes out to a mapped network drive to retrieve a file from a W2K file server. My current web server is a W2K. The share on the file...
1
by: brian.oneil2 | last post by:
Is there a way to install this onto a network file share and allow a team to access it? I would say share a CD from a networked CD drive, but there are multiple CD's that would have to be inserted....
1
by: edge | last post by:
hi, here it is my problem. My console app, reads a text file where it grabs username/password. Next, my app creates a .BAT file to trigger the command ftp:\\user:password@ftphomeaddress. ...
4
by: Scott Nicholson | last post by:
I've got a site set up that uses a network share as it's home directory. Simple stuff is working fine. When I try to put a database in there, though, I run into problems. I'm using: dim...
5
by: Josh Rolfe | last post by:
I have a page in classic asp that accces a network drive, The code is as follows: <% dim fso dim objFolder set fso=server.createObject("Scripting.FileSystemObject") set...
2
by: Johnny Fugazzi | last post by:
I would like to access a network share from my vb.net application. I do not want to map a drive to the share, however. I would also like to specifiy a user credential to use when connecting to...
3
by: musosdev | last post by:
Hi guys Okay, I've setup my projects to open and compile fine in VS2005 using FPSE and remote web, but it's *really* slow. So I thought I'd have a go at doing it the normal way, by loading from...
2
by: Michael | last post by:
We have an ASP.NET 2.0 web application running on a Windows 2003 domain controller. Part of that application needs to read and write files from and to a network share ( living on a MAC Xserveraid)...
1
by: =?Utf-8?B?aGVjc2FuMDc=?= | last post by:
Hello I am fairly new to .NET Development. I need to query folders within a network drive and return some metadata related to the directories. For instance, I might have the following path:...
1
by: Raymond Du | last post by:
Hi, I try to use ASP.Net 2.0 FileUpload control to upload files. The page is working fine when I upload files and save them into my local computer, but fails when the files are to be saved to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.