Re: How to restrict access to Files/Folders?

From: richlm (rich_lm_at_h0tmai1.com)
Date: 12/14/04


Date: Tue, 14 Dec 2004 12:03:51 +0100

If your processes are running as windows services, you can set the user
context (i.e. username/password) for each process independently, and set
file access permissions accordingly (e.g. via windows explorer) for the user
associated with each process.

If your processes are started interactively by a logged-on user, the process
identity will assume the identity of the logged on user. You could probably
use impersonation of another user - but where to store that user info? Maybe
you could also use something like "runas"?

Not knowing your architecture/requirements it's difficult to say what's best
for you, but use windows services if possible.