Re: Protecting directories and files.

From: Marcelo Birnbach [MS] (mbirnbac_at_online.microsoft.com)
Date: 01/09/04


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
>
>



Relevant Pages

  • Re: set password for folder
    ... I am using Windows XP home edition, how to set password to protect for the ... HOW TO Create and Configure User Accounts in Windows XP ... HOW TO Set, View, Change, or Remove File and Folder Permissions ... HOW TO Set the My Documents Folder as Private in Windows XP ...
    (microsoft.public.windowsxp.basics)
  • Re: password protect a second drive
    ... > I am adding a second hard drive to my windows xp Pro computer. ... Even if I can only protect certain ... How to disable Simple Sharing and set permissions on a shared folder in ... Note that the file system must be NTFS, ...
    (microsoft.public.windowsxp.general)
  • Re: file protection
    ... Microsoft Certified Professional [Windows 2000] ... "Mark M." wrote: ... I have several files that I need to protect, ... Or must I put them in a folder and then password ...
    (microsoft.public.win2000.file_system)
  • Re: Avoiding Users from certain folders/drivers
    ... you create an account for yourself and password ... There is no provision to password protect ... Create and Configure User Accounts in Windows XP ... Set the My Documents Folder as "Private" in Windows XP ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: recover compacted folders
    ... Because of this tendency of attachments to infect, ... , then wasted space is generated in that file, and the folder must be ... Windows 2000 and Windows XP. ... Windows XP Service Pack 2 Resources for IT Professionals ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)

Loading