Re: Protecting directories and files.
From: Marcelo Birnbach [MS] (mbirnbac_at_online.microsoft.com)
Date: 01/09/04
- Next message: Holly Mazerolle: "RE: Moving an application build on .NET"
- Previous message: Mike: "scripts within xslt"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 9 Jan 2004 11:05:01 -0800
Hi VJ,
It seems you have 2 different problems to solve here:
1. Let the application access only C:\MyApp folder and subfolders
2. Protect the content of the files from other users
For 1, if your application is managed, then it's really easy, you can modify
the .NET security policy to grant this application access to only this
folder. Where is the application running from? If it's running from My
Computer, then it will be able to do whatever it wants since it will have
FullTrust by default. If not, did you consider using IsolatedStorage?
Problem 2 can be solved using Windows security by giving access to the files
only to the users you trust.
Please let me know if you have any other question. Thanks,
Marcelo
"VJ" <vijaybalki@yahoo.com> wrote in message
news:unrIiEvzDHA.2680@TK2MSFTNGP11.phx.gbl...
> I have a windows based application that will Install in a certain path say
> C:\MyApp. When the application is working, it will create directories and
> files(inclusive of XML Files) below C:\MyApp. I want my application only
to
> be able to read, write and access these directories and files. How do I
> accomplish this?
>
> The way I have it now is I make these directories as system so they are
> hidden, but again the user can go to Windows explorer and change settings
to
> see the files. Also if I mark them as system will it show up in DOS
command?
>
> Also, the XML files my application reads and writes are in clear text; is
> there method or property in XML or a way to protect these files, so only
my
> application can only read or write to it?
>
> Please Help ASAP.
>
> Thanks
> VJ
>
>
- Next message: Holly Mazerolle: "RE: Moving an application build on .NET"
- Previous message: Mike: "scripts within xslt"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|