Subscribe to How-To Geek

How to Deny Access to Files or Folders in Windows Vista

This is a guest post by Abhishek Bhatnagar from www.technixupdate.com, a blog covering Computer tips and tricks.

Most of us use our computers in a shared in environment with our family members, friends etc. But sometimes we may want set some permissions so that we can actually restrict access to certain folders which do not lie in our My Documents, My Pictures etc.

In this case when you can restrict access to a particular folder which could be any where on your hard drive.

Set File or Folder Security

Right click on the folder which you want to block from other users and select Properties.

folder-properties 

Now click the Security tab in the folder properties window, and then click the Edit button.

folder-properties[3]

Click on the Add button to open the “Select Users or Group” window.

security-permissions

Now you can enter the username of the account for which you want restrict access in the text box (Use the “Check Names” button to validate)

  select-users 

or

if you are not sure about the username then click the Advanced button, which opens the search window.

search-users

To search all users click the Find Now button and then locate the user which you want restrict access to the folder and click OK. Now, you will see the username listed in the Security Permissions window, click on the username to select.

guest-blocked

Select the Deny Permissions for that user by checking the Deny box for Full Control.

deny-security-permissions

Now, you will be shown a Windows Security message which in short says that Deny entries always override the allow permissions. Click Yes, and then click OK.

windows-security 

In this way you have restricted access to the folder for a particular user (in my example it was a guest user account in Vista).

Tip: You can also restrict access to all the users in vista type Everyone as the username, but this will also include your account as it is also a part of Everyone user group.

Subscribe to More Computer Tips and Tricks like this from TechnixUpdate

Editor’s note: The files and folders within your user directory should already be off-limits to other regular users on your computer. Of course, if the other users are administrators, they can always reset any of these permissions, including deny. The main reason to use this technique would be if you are trying to remove access to folders on another drive, for instance hiding sensitive documents from children, etc. Just make sure those user accounts don’t have administrator access.

The Geek is the founder of How-To Geek and a geek enthusiast. This article was written on 07/10/08 and tagged with: Security, Windows Vista

Daily Email Updates

You can get our how-to articles in your inbox each day for free. Just enter your name and email below:


Name:
Email:
Similar Articles Featured Wiki Articles
Latest Software Reviews Quick Linux Tips
Geek Arcade Popular Forum Threads

Comments (15)

  1. abhishek

    Thanks for publishing it.

  2. Rohit Khurana

    Nice post!

  3. The Geek

    I definitely appreciate the contributed article… file permissions is something that I have not covered, but really should do more on.

  4. hrobky

    In Windows XP and above:
    To see the Security tab on the Properties window, you have to have the Simple File Sharing turned OFF… In any windows explorer window: tools -> folder options -> view -> Simple File Sharing

    In Vista:
    Press and release Alt key in windows explorer to see the menu

    In any windows Home edition:
    There is no way (tell me I’m wrong) to display Security tab. Use native command cacls (Change ACLs) or xcacls instead.

    I recommend to use powerful utility http://setacl.sourceforge.net/ to set the permissions (ACEs). Also sets ACL inheritance behavior. Able to set ACLs not just for files. (registry entries, services…) Advanced knowledge required.

  5. 0zSpitt

    thanks for finally being one of the few who actually help with vista. all the other forums who bash it have lost any credibility they probably never had to start with.

  6. The Geek

    @0zSpitt

    Thanks… our goal here is to be helpful whenever possible. You can also leave any help questions over on our forum, where we’ve got lots of people that answer questions.

    http://www.howtogeek.com/forum/

  7. Joel Thomas

    Great post Abhishek…Never thought of this as my computer is not usually shared.

  8. xiong

    thanks, i was just looking for this. good way to keep my por . . . pictures from prying eyes.

  9. Mike

    Thanks was trying to figure out how to do this a while ago

  10. John

    Finally a website that clearly explains this issue! Thanks, guys! Now I won’t have to be afraid anymore of guest account users viewing my gf’s (semi-)nude pics. ;-)

  11. Raj Kumar Arora

    Hi,

    This post was really helpful. But can u suggest any way by which we can restrict other Standard Users of Vista Machine to Rename, Write-in a new file, and Delete a folder and all this.

    Regards,
    Raj Kumar Arora
    Er_RajArora@yahoo.com

  12. Raj Kumar Arora

    In my last post the requirement is for steps that can do the whole task in once for whole drive/hard disk.

  13. Bijoy

    Hi,

    I managed to remove all users from the list of permission and now am not able to access it myself. Can someone please tell me how to revoke the changes or regain access?

  14. jd2066

    @Bijoy: To regain access go to Security, Advanced, Ownership and click Take Ownership to become the owner of the folder.

  15. Chava...

    Niiiiice… Thanks Much!.. I was having this problem but because I have a partition. Did not have it when I had just one drive =)


Leave a Comment




Leave your friendly comment here.

If you have a computer help question, click here to leave it on the forums instead.

Note: Your comment may not show up immediately on the site.

Sponsored Links
Getting Started
About How-To Geek
What Is That Process?
svchost.exe
jusched.exe
dwm.exe
ctfmon.exe
wmpnetwk.exe
wmpnscfg.exe
rundll32.exe
wfcrun32.exe
Ipoint.exe
Itype.exe
Wfica32.exe
Mobsync.exe
Cmd.exe
Dpupdchk.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. All Rights Reserved.