Unlike Microsoft Windows, Ubuntu doesn’t have Hidden attribute in folder properties, but rather it has better option to protect or hide the important folders and files. Linux is famous for security and Ubuntu has no exception. Ubuntu can protect your folder without using any type of software.
So to protect your important files in Ubuntu follow these steps.
STEP 1:
Create a new folder anywhere you want, and again create new folder inside that folder. Lets consider we have created two folders “TheChetan.com F1″ and inside that “TheChetan.com F2″. Now put all your important files inside inner folder “TheChetan.com F2″.
STEP 2:
Right click on 1st folder i.e. “TheChetan.com F1″ and Go to properties.
Then select “Permissions” tab. and then select “List files only” in “Folder access” option. If you have multiuser system then do same thing for all users by selecting the proper group.

In just two steps you have protected your files inside a folder, Now when ever somebuddy tries to open the inner folder he/she will get the “Permission Error”.
You can do this trick on single folder or single file, but using two folders you can hide the actual file names too. Actually this is just a basic folder protection trick for Ubuntu, just replacement for Hidden attribute in Windows OS.








Nov 26, 2008 at 9:47 am
This trick works, of course, on any Linux distro and any Desktop Environment, such as KDE or Enlightenment.
You can also ‘hide’ files by starting the filename/foldername with a dot like this:
> .hiddenfolder
This of course doesn’t provide the security of the Permission changes in this blogpost, but its worth noting that most of a user’s configuration files are stored in their /home/username/ directory, and are ‘hidden’ from normal view this way.
Reply to this comment
Nov 26, 2008 at 12:26 pm
Nice post. I used to hide a volume by mounting with this idea so that the other users did not know its existence.
Reply to this comment
Feb 18, 2009 at 8:04 pm
I have already locked the folders with your above mentioned instructions.But now i want to access that folders.How can I access that folders.Pls reply soon on my e-mail ID
Reply to this comment
Chetan Replied:
February 18, 2009 at 9:37 pm
Hello Saurabh,
To remove the locking just right click on the folder and go to permissions and then change the folder access mode to its default mode..
Hope this will solve your problem.
Reply to this comment
Apr 16, 2009 at 8:36 am
Cool chethan it works good….. after enabling that list files option you can even hide the folder as lefty.crupps mentioned..
thanks all
Reply to this comment
Apr 26, 2009 at 12:32 am
Hi… why dont the same thing work on external hard disk… how to hide folders or lock folders on external hard disk.. any suggestions??… my external hard disk is nfs system is it the cause that i cant apply the above list step?.. please help me
Reply to this comment
May 23, 2009 at 8:28 pm
Thanks for this
Reply to this comment
May 25, 2009 at 1:24 pm
Thanks for this, great solution
Reply to this comment
May 26, 2009 at 10:39 pm
Will the method described at thechetan.com/2008/11/how-to-hide-or-protect-folders-in-ubuntu-linux/
work for folders on an external hard drive? If not, is there a method–or software–to do so?
Reply to this comment
Dec 17, 2009 at 8:19 pm
How to Hide Folders in Ubuntu?
I have single user.. I dont want to creat one more user, But I want to hide my own folde, so Please help me any one
can any one help me?
Reply to this comment