Securing folders in XP

By Mark Kaelin, Special to ZDNet Asia
Thursday, August 19, 2004 07:50 PM

Not all data is meant to be shared. Often you'll want to prevent information from being seen by just anyone. Microsoft Windows XP Professional provides several features for securing data. Although the methods are basic in nature, they'll be more than enough deterrent for all but the most determined hacker.

Protecting data from certain users is the situation our reader OptionExplicit faced when he asked for help in TechRepublic's Discussion Center.

How do I secure a folder/directory from being accessed by unauthorized people (from Windows explorer), but at the same time, give access to some programs that need to access that same directory or the files in it? The programs that will routinely access the folders are written in VB.

Solution 1
Windows XP Professional allows you to set permissions for a file or folder from the properties dialog, which you can reach by right-clicking the file or folder and clicking the Properties entry on the ensuing menu. In the Properties dialog, click the Security tab to get to an interface similar to that shown in Figure A.

Figure A

Security tab

From this interface, you can add users to the Permissions list, set specific permissions for each user or group, and grant special permissions via the Advanced button. Setting permissions and policies can seem a little daunting, but the basic principles are easy to understand: User A can access this folder and User B cannot. The numerous possible permission combinations should give you the flexibility to meet your security needs.


Visual Basic

Because OptionExplicit is using Visual Basic for his project, he will most likely have to add some code from the FileIOPermission class to check permissions for each user as he or she accesses the folder in question.


Solution 2
Another method for securing a folder or file involves encryption, which is also part of Windows XP Professional. Similar to permissions, the encryption configuration is reached by right-clicking the folder or file and then clicking the Advanced button on the ensuing Properties interface. The Advanced button brings you to a dialog similar to the one shown in Figure B.

Figure B

Encryption

You can encrypt the file or folder by clicking the encryption check box. Keep in mind that no encryption scheme is completely crack-proof. Physical security—preventing access altogether—is really the most secure security.

Next Steps: Build your skills with these hand-picked resources
> Create and control shared folders in Windows XP
> MSKB - 290403: How to Set Security in Windows XP Professional That Is Installed in a Workgroup
> Microsoft TechNet: How to Share and Set Permissions for Folders and Files Using Windows XP
> Tech Tips for Windows XP Professional
> Windows XP Professional Features

WORTHWHILE?

0

0 votes
Save to my library  Save to My Library  
Blog

Talkback 0 comments

There are currently no comments for this post.

Hands-on programming: Extract plain text from documents with Syncfusion's components

Web Development

Justin James recently tried Syncfusion's Essential DocIO and Essential PDF to help him extract text from documents he downloaded from the Internet. Here's the code he wrote to get the plain text.


Read more »


Will technology divide us further?

Blog thumbnail

So I finally watched 2012 over the weekend, but the film left me feeling extremely agitated.

The possibility that the world may meet its watery end in three years didn't..... by Eileen Yu

Read more »

Tech Jobs Now!


Tags

  1. antivirus
  2. apple ipod
  3. cnet networks inc.
  4. desktop
  5. e - mail
  6. hard drive
  7. intuit inc.
  8. mcafee inc.
  9. microsoft corp.
  10. microsoft windows
  11. microsoft windows vista
  12. microsoft windows xp
  13. norton co.
  14. pc
  15. performance
  16. security
  17. software
  18. tool
  19. web
  20. web site