Protect Folders On USB Pen Drive – Access Denied To Others

by Rohit Khurana on February 11, 2009

Advertisement

Trouble:

One of my friend asked me how can he protect some of his folders on his pen drive so that he can only open those folders.

In short he wants to make some of his pen drive folders as private that only he can open those folders. 

access-denied 

After analyzing the problem completely, I was able to figure out a possible solution to his problem. We can actually make any of the folders on the pen drive protected and access denied to all the other users on including the users on other computer.

 

So, No one except you can open those folders on your pen drive instead they will see the message “Access Denied” when ever they try to open those folders. This protection will work even if some one take your pen drive and connect it to any other windows computer.

 

Let’s see how can you make some folder protected or access denied to other users.

Fix:

1. First make sure that your USB pen drive supports NTFS file system.

Note: if you don’t know how to check whether your pen drive supports NTFS File system then follow the next step you will come to know  

 

2. Backup all the data from your pen drive on your computer hard drive.

 

3. Right click on the Pen Drive Icon in My Computer, select format.

format-pen-drive

4. Now, select NTFS as file system, click the option which says quick format and click Ok.

Advertisement

start-format-pen-drive

5. Now open your pen drive and copy your data including private folders on the pen drive.

6. Right click on your private folders on your drive and select Properties and click the Security Tab.

7. Click on the Edit button to deny access permissions to all the other users.

edit-permissions

8. Now, In order to deny the access permissions to all the other users, you will need to set deny permissions for everyone user group.

permissions-private

9. Click Apply and then Ok button after selecting the deny permissions through checkboxes.

10. That’s it, this folder on your pen drive will become access denied to all the users including you.

access_denied_folders

But you know how to remove the protection by un checking the checkboxes under Deny Permissions.

If you like this article or this article helped you, you can +1 to recommend this article on google plus.

You can follow us on Twitter or join our Facebook Fan Page. If you have a question to ask us, submit your question at Answers By Trouble Fixers.

Looking for something else? Search here :

{ 13 comments… read them below or add one }

Jalal February 11, 2009 at 11:19 am

Nice post. Thanks!

Jalal February 11, 2009 at 11:28 am

Note!. for enabling NTFS format in pen drive you should, first of all active it from “Device Manager”. Don’t forget (:

jrccc February 26, 2009 at 3:19 am

Hello guys,
If you format your pen drive to NTFS be careful when you remove. If you remove without stopping it your data will be lost !

Rohit Agarwal March 10, 2009 at 5:06 am

There is a much simpler method that I found on the net some time back and have been using very effectively.

Copy the code below and save it as a .bat file. Copy this file on to the USB drive / external hard drive. When you run it for the first time, it creates a folder called locker. You can copy the files you want to hide / restrict on to this folder. The next time you run the file it hides the folder after confirmation. Everytime you want to access files, you need to enter your password, and running the file toggles the accessiblity of the folder on and off.
The default password is password, and can be changed by changing this particular word in the .bat file.

Try it – its good.

cls
@ECHO OFF
title Folder Locker
if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure u want to Lock the folder(Y/N)
set/p “cho=>”
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Locker “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
attrib +h +s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p “pass=>”
if NOT %pass%==password goto FAIL
attrib -h -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End

suji March 30, 2009 at 12:09 am

hi i need to know one had stolen my pendrive …tat time i dont have … any secret code for my pendrive how to check the pendrive serial no in usb drive …. 2gb transcend pendrive….jf2g v30 serial no….

awais May 21, 2009 at 3:17 am

hy my name iz awais and i have a problem in my computer plz if u help me i will be thank full 2 you. the problem is that when ever i start my computer after the welcome screen a box appears and this msg shows {(server busy) This action cannot be completed because the another program is busy. Choose switch to activate the busy program and correct the problem.}
plz help me put i any one would know the solution. thankx

awais May 21, 2009 at 3:19 am

This action cannot be completed because the another program is busy. Choose switch to activate the busy program and correct the problem.

RUSHABH SHAH August 1, 2009 at 12:56 am

PLS GUIDE ME — IS IT POSSIBLE FOR SOMEBODY TO ACCESS MY PEN DRIVE IN MY COMPUTER FROM ANOTHER MACHINE IN NETWORK.

IF IT IS POSSIBLE, PLEASE LET ME KNOW HOW CAN I BLOCK THE USAGE OF MY PEN DRIVE FROM ANOTHER MACHINE….

THANKING YOU IN ADVANCE FOR ALL YOUR HELP….

Karthikeyan November 18, 2009 at 12:11 am

Hello Rogit Agarwal, your batch file is not working.

I am requesting you to re-check the coding.

Piyush June 23, 2010 at 7:11 pm

Its really cool

ram August 12, 2010 at 5:08 pm

i dont have that NTFS Support only fat support

Leave a Comment

Previous post:

Next post:

© TroubleFixers – All about fixing computer troubles2007-2014 . All Rights Reserved.