All Methods and Software's to Lock Folders in Windows, Mac and Linux

First of all, Wish you all a very very happy new year! 
So at the same time a small gift for you is this article. 
This article will tell you how to lock files and folders  in Windows, Mac and Linux. Sometimes you need to save your private information like results, business documents, private pictures and videos, so the best way is to lock files and folders. If your computer have multi-users and it is used by many users. Then you will definitely need a tool or method to lock files and folders which are private and confidential. As most of the persons in the world mainly use three OS they are Windows, Mac and Linux. so in this tutorial you will learn how to lock files and folders in all three OS. So now don't worry I will tell you how to lock files and folders in simple steps. It's very easy just follow the steps below:

 Windows

There are different methods to lock files and folders in windows. I will here tell you three methods. First one will be using programming, Second one using default software's and last is using software's.
  • Using Batch File (No Software Needed) :
We can  lock files and folder using the batch programming, here is the way to do it.

Step 1. Open the notepad and paste the below code in it.


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%==your_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


 Step 2. Replace "your_password" term in above code with the password you desire. If you not do so then your Default password is "your_passsword" without quotes. Now go to the file menu of the notepad and select Save As option then another window pops out .
in it give name "Locker.bat" and do Save As Type from Text Document to All Files.
         



Step 3. Now you got the Exe icon like given below. double click that icon. 
You will find that a folder with name locker is created there only.


Step 4. put all your important, private files in this newly created folder with name locker.

Step 5.  Now after keeping all files, double click on the previous Exe "locker.bat". a command prompt will come and ask to lock folder or not. Press y. your folder is locked now and become invisible too. for making it visible double click on the Exe again and put password.

  • Using Default Software :
As we all now there are software's which by default is there or not so require them most often. Like mostly users are having Win-Rar. So with the help of these software's we can also lock files and folders.

I had mention the steps please go through it.

Step 1. first create any folder anywhere you want in your system.  name it anything. let say xyz.

Step 2.Now put all your important and secret files or the files and folders you need to lock.

Step 3. now right click on that folder do Send To -> Compressed(zipped) Folder.

Step 4. Now a zipped folder is created there only. Double click on it to open. Now a window comes in front of you. In it Go to Files->Set Password.
                      
Step 5. Set the desired Password.

Step 6. now delete the original unzipped password.

You are now left with the password protect folder. When someone will try to open it, it will ask password.

  • Using Software's :
There are plenty number of software's available to lock the files and folders. But some are paid and some are un-paid. So i had listed best of them below, Just pick anyone and download and install it.

Folder Lock 6.4.1        

  My Lockbox                   



 Free Hide Folder 3.0


Folder Lock Free

  
Microsoft Private Folder 





Linux

In Linux there are two ways one way is lock files and folders using commands and other way is using Software's.


  • Using Commands :
Below I had explained the steps, follow them carefully. It is based on shifting user rights foe a respective folder. Here a system is accessed from my account, so what will I do is shift the user access to root. But even then other users might open so for completely locking files and folders so that even no one can open it. change the permissions.

Step 1. First create a folder and name it anything. For here let's say u named it abc. 

Now give command

[root]# chown -R root:root abc/

Then put this command to change permissions

[root]# chmod -R 700 abc/

To acess folder give this command

sudo nautilus abc

If above commands not work on your Linux then try these

sudo chown -R root:root "folder name" 
sudo chown 700 "folder name"
sudo nautilus "folder name"


  • Software's :
There are plenty number of software's available to lock the files and folders. But some are paid and some are un-paid. So i had listed best of them below, Just pick anyone and download and install it.

If you are using Ubuntu then Open its software center and search for  the software named. "ecryptfs". install it by choosing it and then clicking on "install".

True Crypt 


Mac

  • Software's :
There are plenty number of software's available to lock the files and folders. But some are paid and some are un-paid. So i had listed best of them below, Just pick anyone and download and install it.

Lock Me Baby

SSH Key Chain


Locker




iPhone/ iPad

Download this application. It is the best rated application for locking files and folders.

Folder Lock 



If You are having any query, then mail me or comment here! 
If You like this post then Share and Like this on social Site. 
Keep Enjoying!

0 comments: