I want to keep password for my important folder where my all the documents are kept so how can i keep password for it?
-
Do you mean, how you can password protect a folder where all your documents are kept? Do you want to create a private encrypted folder? If so see https://help.ubuntu.com/community/EncryptedPrivateDirectory – user68186 Jun 05 '14 at 19:09
-
See also this question and this question. – Wilf Jun 05 '14 at 19:52
2 Answers
If you want to stop people accessing a file or folder, encrypting the file with a password is a great way to do it. First either open Archive Manager and click New, or right-click on the folder you want to protect and press 'Compress'.
Then chose a compression format you can encrypt (e.g. .7z
, .arj
, etc) (under Other Options). Using 7z
ip compression is good, as then you can encrypt the file list to. Then type the password you want to use.
Then you can add files:
Then you have an encrypted archive with your files secure inside - though it can still be deleted...
You can also hide the compressed file by adding a .
to the beginning of the file name, so it only shows when you press Ctrl+H.

- 30,194
- 17
- 108
- 164
-
-
1@wilf how did you create that emoticon its so sreative and very attractive – agha rehan abbas Jul 10 '14 at 18:52
-
1@agharehanabbas - I did create/modify some emoticons a while ago using the GIMP - you can do neat animated ones using GIF or a similar format. If I didn't create this one, I probably found it on Google Images :D. To create one, you can using paths, the circle select tool, gradients etc - stroke selection/path can be used to draw the outlines. – Wilf Jul 10 '14 at 19:10
-
1thanks i will experiment this thing i am very curious about it :D – agha rehan abbas Jul 10 '14 at 19:35
By default, your first line of defense is linux permissions and your regular password.
sudo chown your_user:your_user /home/your_user/some_directory
chmod 700 /home/your_user/some_directory
chomd 600 /home/your_user/some_directory/*
use 700 for sub directories as well (600 for files).
That will not protect against sharing your account , or someone with physical or root access.
To protect from root / physical access you have to use encryption. You have several options for encryption from a private, encrypted home directory to gpg to cryptkeeper . cyptkeeper is a graphical tool and will encrypt the directory.
Note: as long as the directory is decrypted is is accessible to root and other users with the appropriate permissions.

- 102,067