c#2010 winforms - folder security

Posted on 2013-09-17
Medium Priority
Last Modified: 2013-10-08

I have an application that is accessing an access database on a shared network drive.  This drive is accessible by all, and I am now thinking that it will be a good idea to introduce some more security on the database. The database is password protected, but what I would also like to do is protect the folder that the database is stored in, to prevent access to users. the server is windows 2003

If i allow access to the folder to only my windows login, can I programatically pass my credentials through my c# application, so that it also has access, thus allowing the system to perform as normal, and preventing unwanted users from viewing the content of the folder through windows explorer.


Question by:cycledude
LVL 25

Accepted Solution

apeter earned 1000 total points
ID: 39504246
You have to impersonate your client application so that only this can access that folder in your windows 2003 server. Hence other who logs in windows 2003 can't access that folder.

Author Closing Comment

ID: 39557939
I accepted this just to close the question, whilst it answer my question in the broadest sense I was looking for a solution as opposed to the theory

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Hi, this video explains a free download that you can incorporate into your Access databases, or use stand-alone for contact management. Contacts -- Names, Addresses, Phone Numbers, eMail Addresses, Websites, Lists, Projects, Notes, Attachments…

600 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question