How to encrypt individual folders?












81















Let's say that I have a folder, within my Documents folder, that has files I want no one to access without a password.



Is there a way to lock down that folder so that it's password protected / encrypted?



In fact, is it possible to password-protect any individual folder?










share|improve this question





























    81















    Let's say that I have a folder, within my Documents folder, that has files I want no one to access without a password.



    Is there a way to lock down that folder so that it's password protected / encrypted?



    In fact, is it possible to password-protect any individual folder?










    share|improve this question



























      81












      81








      81


      37






      Let's say that I have a folder, within my Documents folder, that has files I want no one to access without a password.



      Is there a way to lock down that folder so that it's password protected / encrypted?



      In fact, is it possible to password-protect any individual folder?










      share|improve this question
















      Let's say that I have a folder, within my Documents folder, that has files I want no one to access without a password.



      Is there a way to lock down that folder so that it's password protected / encrypted?



      In fact, is it possible to password-protect any individual folder?







      password security encryption directory






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 24 '15 at 11:07









      landroni

      4,29462249




      4,29462249










      asked Feb 15 '12 at 20:59









      GonzozaGonzoza

      1,06821629




      1,06821629






















          6 Answers
          6






          active

          oldest

          votes


















          58















          WARNING: CryptKeeper has recently been reported that it has a universal password bug that puts your data at potential risk. This issue may not yet be fixed in Ubuntu, use this solution at your own risk.



          Relevant bug information links:

          Upstream bug: https://github.com/tomm/cryptkeeper/issues/23

          Debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=852751






           sudo apt-get install cryptkeeper


                                          After installing, go to Applications –> System Tools –> Cryptkeeper.



                                                  Cryptkeeper will automatically attach itself to the top panel



                             enter image description here



                               To create an encrypted protected folder, click on Cryptkeeper applet and select                                                                             ‘New encrypted folder’



                             enter image description here



                                    Then type the folder name and where to save the folder and click ‘Forward’.



                             enter image description here



                                                                        Type the password and click ‘Forward’.



                             enter image description here



                                                                The folder will be created and ready to be used.



                             enter image description here



                             To access all encrypted folder, click on Cryptkeeper applet on the panel and select                                                                                                each folder.



                             enter image description here



                                                             Type the password before it is mounted to be accessed.



                             enter image description here



                                                                 Done



                             enter image description here



                           To delete a folder or change the password, right-click the folder in the panel-applet.



                                                                                                For More Help






          share|improve this answer





















          • 3





            In case you can't see the panel icon run gsettings set com.canonical.Unity.Panel systray-whitelist "['all']" and unity --replace.

            – Jakob
            Feb 17 '12 at 9:01








          • 3





            @OneZero - +1 excellent answer

            – fossfreedom
            Feb 17 '12 at 10:58











          • @fossfreedom , When the Gurru say its excellent , then it's a excellent answer . thankyou

            – One Zero
            Feb 17 '12 at 11:21






          • 1





            @Jakob At least in 13.10, com.canonical.Unity.Panel doesnt exist, and systray-whitelist is an invalid key in all available Unity. schemas :(

            – RedactedProfile
            Apr 28 '14 at 8:00






          • 2





            Cryptkeeper received bad ratings recently on the Ubuntu software center

            – danza
            Jan 14 '16 at 14:45



















          13














          EncryptedPrivateDirectory Method
          Ubuntu Official Docs



          Search for and install ‘ecryptfs-utils’ in Ubuntu Software Center:



          enter image description here



          After installing, go to Applications –> Accessories –> Terminal and run the command below:



          ecryptfs-setup-private


          enter image description here



          You’ll be prompted to type your login passphrase (password), and to create one for your private folder:



          enter image description here



          When you’re done creating your password, Log Out and Log back in:



          enter image description here



          Next, go to Places –> Home Folder:



          enter image description here



          And new folder should be created in your home directory called ‘Private’. This folder in encrypted and password-protected. Move all your personal stuff into this folder to secure them:



          enter image description here



          Users without access to the folder will be denied:



          enter image description here



          For More Help






          share|improve this answer

































            9














            You have 2 choices if you want to lock down a folder from other users




            • Encrypt or create a compressed password protect archive of the files. The methods in https://askubuntu.com/a/104545/25863 and https://askubuntu.com/a/104984/25863 are perfect for this case when you need to be 100% sure no one will ever look at your files without knowing the password used there.


            • Use your computer folder / file permissions to deny access to your folder to other user.



            The fist involves making sure that the result cannot be opened by any user without knowing the password used.



            The second will only change the file / folder privileges so that another user without rights cannot open it. The folder still exists, can be accessed by any user with sudo rights in your system or using a LiveCD and reading the partition. It is also simpler to implement and does not require that you type a password all the time you need to open / mount the encrypted folder / archive.



            An easy and fast way to do so is using chmod to change the privileges for a file or folder.



            Open a terminal and navigate to the place where your folder is, lets assume that the folder name is foo and that we are currently located where the folder is.



            chmod 700 foo


            will make foo only available for your eyes, its not encrypted (that is also possible) but only your user (and or a user with sudo privileges) can read or open that file / folder.



            You can also do it graphically by right clicking on a file or folder and changing its permissions manually. In the example bellow you as owner have all privileges and you deny any other group or user from accessing, reading or modifying that file / folder



            enter image description here



            For more information about file / folder permissions visit the Ubuntu Understanding and Using File Permissions wiki page.






            share|improve this answer


























            • +1 can't go wrong with those elusive yet simple solutions.

              – Aaron
              Feb 16 '12 at 1:03











            • Sounds great, but doesn't make much sense. How do I simply "change the privileges" for a while or folder?

              – Gonzoza
              Feb 16 '12 at 7:12











            • You're dealing with newbies here. What does "using the command" mean? If I click on a folder, then how do "use a command"?

              – Gonzoza
              Feb 16 '12 at 9:50











            • I have added that to the answer also, right click a folder and go to the permissions and have a look at it. The example given would make the file / folder only accessible by you or a user with sudo rights. It is the same as issuing chmod 700 <folder_name> in a terminal.

              – Bruno Pereira
              Feb 16 '12 at 10:01













            • Brilliant. I shall try that. EDIT: Hang on. Doesn't that only work if someone else is logged on to my PC? Right now, I am logged on - and am the only user - so therefore, I can access all those folders without typing in a password.

              – Gonzoza
              Feb 16 '12 at 12:55





















            4














            You can try Vault, recent project by an ubuntu-gr member (greek local community): http://clepto.github.com/ - https://github.com/Clepto/Vault



            PPA: https://launchpad.net/~vault/+archive/ppa



            sudo add-apt-repository ppa:vault/ppa
            sudo apt-get update
            sudo apt-get install vault


            It's a gui utility for encfs (package in repositories). I quote the package description:



            $ apt-cache show encfs
            Package: encfs
            [...]
            Description-en: encrypted virtual filesystem
            EncFS integrates file system encryption into the Unix(TM) file system.
            Encrypted data is stored within the native file system, thus no
            fixed-size loopback image is required.
            .
            EncFS uses the FUSE kernel driver and library as a backend.
            Homepage: http://www.arg0.net/encfs


            You create a mountpoint/folder which you can then close or delete. If you close it, you need a password to open it.



            enter image description here






            share|improve this answer



















            • 2





              ppa does not exist anymore.

              – user4381
              Dec 20 '16 at 14:51



















            3














            Another way, depending on your needs is to archive the folder as a password protected zip file.



            This is similar to another question about password protecting files.






            share|improve this answer

































              1














              You can use CryFS



              cryfs basedir mountdir


              It is used by default in KDE Vaults and is particularly interesting if you synchronize the encrypted content over Dropbox, Freefilesync, rsync or similar software, because it keeps its data in small encrypted blocks and changing a small file results in only a small amount of data to be re-uploaded.






              share|improve this answer


























              • I would advise against cryfs because it doesn't support (standard Unix) hard links.

                – arielf
                Jan 14 at 22:56











              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "89"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f104542%2fhow-to-encrypt-individual-folders%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              6 Answers
              6






              active

              oldest

              votes








              6 Answers
              6






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              58















              WARNING: CryptKeeper has recently been reported that it has a universal password bug that puts your data at potential risk. This issue may not yet be fixed in Ubuntu, use this solution at your own risk.



              Relevant bug information links:

              Upstream bug: https://github.com/tomm/cryptkeeper/issues/23

              Debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=852751






               sudo apt-get install cryptkeeper


                                              After installing, go to Applications –> System Tools –> Cryptkeeper.



                                                      Cryptkeeper will automatically attach itself to the top panel



                                 enter image description here



                                   To create an encrypted protected folder, click on Cryptkeeper applet and select                                                                             ‘New encrypted folder’



                                 enter image description here



                                        Then type the folder name and where to save the folder and click ‘Forward’.



                                 enter image description here



                                                                            Type the password and click ‘Forward’.



                                 enter image description here



                                                                    The folder will be created and ready to be used.



                                 enter image description here



                                 To access all encrypted folder, click on Cryptkeeper applet on the panel and select                                                                                                each folder.



                                 enter image description here



                                                                 Type the password before it is mounted to be accessed.



                                 enter image description here



                                                                     Done



                                 enter image description here



                               To delete a folder or change the password, right-click the folder in the panel-applet.



                                                                                                    For More Help






              share|improve this answer





















              • 3





                In case you can't see the panel icon run gsettings set com.canonical.Unity.Panel systray-whitelist "['all']" and unity --replace.

                – Jakob
                Feb 17 '12 at 9:01








              • 3





                @OneZero - +1 excellent answer

                – fossfreedom
                Feb 17 '12 at 10:58











              • @fossfreedom , When the Gurru say its excellent , then it's a excellent answer . thankyou

                – One Zero
                Feb 17 '12 at 11:21






              • 1





                @Jakob At least in 13.10, com.canonical.Unity.Panel doesnt exist, and systray-whitelist is an invalid key in all available Unity. schemas :(

                – RedactedProfile
                Apr 28 '14 at 8:00






              • 2





                Cryptkeeper received bad ratings recently on the Ubuntu software center

                – danza
                Jan 14 '16 at 14:45
















              58















              WARNING: CryptKeeper has recently been reported that it has a universal password bug that puts your data at potential risk. This issue may not yet be fixed in Ubuntu, use this solution at your own risk.



              Relevant bug information links:

              Upstream bug: https://github.com/tomm/cryptkeeper/issues/23

              Debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=852751






               sudo apt-get install cryptkeeper


                                              After installing, go to Applications –> System Tools –> Cryptkeeper.



                                                      Cryptkeeper will automatically attach itself to the top panel



                                 enter image description here



                                   To create an encrypted protected folder, click on Cryptkeeper applet and select                                                                             ‘New encrypted folder’



                                 enter image description here



                                        Then type the folder name and where to save the folder and click ‘Forward’.



                                 enter image description here



                                                                            Type the password and click ‘Forward’.



                                 enter image description here



                                                                    The folder will be created and ready to be used.



                                 enter image description here



                                 To access all encrypted folder, click on Cryptkeeper applet on the panel and select                                                                                                each folder.



                                 enter image description here



                                                                 Type the password before it is mounted to be accessed.



                                 enter image description here



                                                                     Done



                                 enter image description here



                               To delete a folder or change the password, right-click the folder in the panel-applet.



                                                                                                    For More Help






              share|improve this answer





















              • 3





                In case you can't see the panel icon run gsettings set com.canonical.Unity.Panel systray-whitelist "['all']" and unity --replace.

                – Jakob
                Feb 17 '12 at 9:01








              • 3





                @OneZero - +1 excellent answer

                – fossfreedom
                Feb 17 '12 at 10:58











              • @fossfreedom , When the Gurru say its excellent , then it's a excellent answer . thankyou

                – One Zero
                Feb 17 '12 at 11:21






              • 1





                @Jakob At least in 13.10, com.canonical.Unity.Panel doesnt exist, and systray-whitelist is an invalid key in all available Unity. schemas :(

                – RedactedProfile
                Apr 28 '14 at 8:00






              • 2





                Cryptkeeper received bad ratings recently on the Ubuntu software center

                – danza
                Jan 14 '16 at 14:45














              58












              58








              58








              WARNING: CryptKeeper has recently been reported that it has a universal password bug that puts your data at potential risk. This issue may not yet be fixed in Ubuntu, use this solution at your own risk.



              Relevant bug information links:

              Upstream bug: https://github.com/tomm/cryptkeeper/issues/23

              Debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=852751






               sudo apt-get install cryptkeeper


                                              After installing, go to Applications –> System Tools –> Cryptkeeper.



                                                      Cryptkeeper will automatically attach itself to the top panel



                                 enter image description here



                                   To create an encrypted protected folder, click on Cryptkeeper applet and select                                                                             ‘New encrypted folder’



                                 enter image description here



                                        Then type the folder name and where to save the folder and click ‘Forward’.



                                 enter image description here



                                                                            Type the password and click ‘Forward’.



                                 enter image description here



                                                                    The folder will be created and ready to be used.



                                 enter image description here



                                 To access all encrypted folder, click on Cryptkeeper applet on the panel and select                                                                                                each folder.



                                 enter image description here



                                                                 Type the password before it is mounted to be accessed.



                                 enter image description here



                                                                     Done



                                 enter image description here



                               To delete a folder or change the password, right-click the folder in the panel-applet.



                                                                                                    For More Help






              share|improve this answer
















              WARNING: CryptKeeper has recently been reported that it has a universal password bug that puts your data at potential risk. This issue may not yet be fixed in Ubuntu, use this solution at your own risk.



              Relevant bug information links:

              Upstream bug: https://github.com/tomm/cryptkeeper/issues/23

              Debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=852751






               sudo apt-get install cryptkeeper


                                              After installing, go to Applications –> System Tools –> Cryptkeeper.



                                                      Cryptkeeper will automatically attach itself to the top panel



                                 enter image description here



                                   To create an encrypted protected folder, click on Cryptkeeper applet and select                                                                             ‘New encrypted folder’



                                 enter image description here



                                        Then type the folder name and where to save the folder and click ‘Forward’.



                                 enter image description here



                                                                            Type the password and click ‘Forward’.



                                 enter image description here



                                                                    The folder will be created and ready to be used.



                                 enter image description here



                                 To access all encrypted folder, click on Cryptkeeper applet on the panel and select                                                                                                each folder.



                                 enter image description here



                                                                 Type the password before it is mounted to be accessed.



                                 enter image description here



                                                                     Done



                                 enter image description here



                               To delete a folder or change the password, right-click the folder in the panel-applet.



                                                                                                    For More Help







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Feb 14 '17 at 16:15









              Thomas Ward

              44.5k23124177




              44.5k23124177










              answered Feb 17 '12 at 8:24









              One ZeroOne Zero

              17.4k2272106




              17.4k2272106








              • 3





                In case you can't see the panel icon run gsettings set com.canonical.Unity.Panel systray-whitelist "['all']" and unity --replace.

                – Jakob
                Feb 17 '12 at 9:01








              • 3





                @OneZero - +1 excellent answer

                – fossfreedom
                Feb 17 '12 at 10:58











              • @fossfreedom , When the Gurru say its excellent , then it's a excellent answer . thankyou

                – One Zero
                Feb 17 '12 at 11:21






              • 1





                @Jakob At least in 13.10, com.canonical.Unity.Panel doesnt exist, and systray-whitelist is an invalid key in all available Unity. schemas :(

                – RedactedProfile
                Apr 28 '14 at 8:00






              • 2





                Cryptkeeper received bad ratings recently on the Ubuntu software center

                – danza
                Jan 14 '16 at 14:45














              • 3





                In case you can't see the panel icon run gsettings set com.canonical.Unity.Panel systray-whitelist "['all']" and unity --replace.

                – Jakob
                Feb 17 '12 at 9:01








              • 3





                @OneZero - +1 excellent answer

                – fossfreedom
                Feb 17 '12 at 10:58











              • @fossfreedom , When the Gurru say its excellent , then it's a excellent answer . thankyou

                – One Zero
                Feb 17 '12 at 11:21






              • 1





                @Jakob At least in 13.10, com.canonical.Unity.Panel doesnt exist, and systray-whitelist is an invalid key in all available Unity. schemas :(

                – RedactedProfile
                Apr 28 '14 at 8:00






              • 2





                Cryptkeeper received bad ratings recently on the Ubuntu software center

                – danza
                Jan 14 '16 at 14:45








              3




              3





              In case you can't see the panel icon run gsettings set com.canonical.Unity.Panel systray-whitelist "['all']" and unity --replace.

              – Jakob
              Feb 17 '12 at 9:01







              In case you can't see the panel icon run gsettings set com.canonical.Unity.Panel systray-whitelist "['all']" and unity --replace.

              – Jakob
              Feb 17 '12 at 9:01






              3




              3





              @OneZero - +1 excellent answer

              – fossfreedom
              Feb 17 '12 at 10:58





              @OneZero - +1 excellent answer

              – fossfreedom
              Feb 17 '12 at 10:58













              @fossfreedom , When the Gurru say its excellent , then it's a excellent answer . thankyou

              – One Zero
              Feb 17 '12 at 11:21





              @fossfreedom , When the Gurru say its excellent , then it's a excellent answer . thankyou

              – One Zero
              Feb 17 '12 at 11:21




              1




              1





              @Jakob At least in 13.10, com.canonical.Unity.Panel doesnt exist, and systray-whitelist is an invalid key in all available Unity. schemas :(

              – RedactedProfile
              Apr 28 '14 at 8:00





              @Jakob At least in 13.10, com.canonical.Unity.Panel doesnt exist, and systray-whitelist is an invalid key in all available Unity. schemas :(

              – RedactedProfile
              Apr 28 '14 at 8:00




              2




              2





              Cryptkeeper received bad ratings recently on the Ubuntu software center

              – danza
              Jan 14 '16 at 14:45





              Cryptkeeper received bad ratings recently on the Ubuntu software center

              – danza
              Jan 14 '16 at 14:45













              13














              EncryptedPrivateDirectory Method
              Ubuntu Official Docs



              Search for and install ‘ecryptfs-utils’ in Ubuntu Software Center:



              enter image description here



              After installing, go to Applications –> Accessories –> Terminal and run the command below:



              ecryptfs-setup-private


              enter image description here



              You’ll be prompted to type your login passphrase (password), and to create one for your private folder:



              enter image description here



              When you’re done creating your password, Log Out and Log back in:



              enter image description here



              Next, go to Places –> Home Folder:



              enter image description here



              And new folder should be created in your home directory called ‘Private’. This folder in encrypted and password-protected. Move all your personal stuff into this folder to secure them:



              enter image description here



              Users without access to the folder will be denied:



              enter image description here



              For More Help






              share|improve this answer






























                13














                EncryptedPrivateDirectory Method
                Ubuntu Official Docs



                Search for and install ‘ecryptfs-utils’ in Ubuntu Software Center:



                enter image description here



                After installing, go to Applications –> Accessories –> Terminal and run the command below:



                ecryptfs-setup-private


                enter image description here



                You’ll be prompted to type your login passphrase (password), and to create one for your private folder:



                enter image description here



                When you’re done creating your password, Log Out and Log back in:



                enter image description here



                Next, go to Places –> Home Folder:



                enter image description here



                And new folder should be created in your home directory called ‘Private’. This folder in encrypted and password-protected. Move all your personal stuff into this folder to secure them:



                enter image description here



                Users without access to the folder will be denied:



                enter image description here



                For More Help






                share|improve this answer




























                  13












                  13








                  13







                  EncryptedPrivateDirectory Method
                  Ubuntu Official Docs



                  Search for and install ‘ecryptfs-utils’ in Ubuntu Software Center:



                  enter image description here



                  After installing, go to Applications –> Accessories –> Terminal and run the command below:



                  ecryptfs-setup-private


                  enter image description here



                  You’ll be prompted to type your login passphrase (password), and to create one for your private folder:



                  enter image description here



                  When you’re done creating your password, Log Out and Log back in:



                  enter image description here



                  Next, go to Places –> Home Folder:



                  enter image description here



                  And new folder should be created in your home directory called ‘Private’. This folder in encrypted and password-protected. Move all your personal stuff into this folder to secure them:



                  enter image description here



                  Users without access to the folder will be denied:



                  enter image description here



                  For More Help






                  share|improve this answer















                  EncryptedPrivateDirectory Method
                  Ubuntu Official Docs



                  Search for and install ‘ecryptfs-utils’ in Ubuntu Software Center:



                  enter image description here



                  After installing, go to Applications –> Accessories –> Terminal and run the command below:



                  ecryptfs-setup-private


                  enter image description here



                  You’ll be prompted to type your login passphrase (password), and to create one for your private folder:



                  enter image description here



                  When you’re done creating your password, Log Out and Log back in:



                  enter image description here



                  Next, go to Places –> Home Folder:



                  enter image description here



                  And new folder should be created in your home directory called ‘Private’. This folder in encrypted and password-protected. Move all your personal stuff into this folder to secure them:



                  enter image description here



                  Users without access to the folder will be denied:



                  enter image description here



                  For More Help







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Jul 29 '17 at 14:17









                  jtlindsey

                  4311516




                  4311516










                  answered Feb 17 '12 at 9:28









                  One ZeroOne Zero

                  17.4k2272106




                  17.4k2272106























                      9














                      You have 2 choices if you want to lock down a folder from other users




                      • Encrypt or create a compressed password protect archive of the files. The methods in https://askubuntu.com/a/104545/25863 and https://askubuntu.com/a/104984/25863 are perfect for this case when you need to be 100% sure no one will ever look at your files without knowing the password used there.


                      • Use your computer folder / file permissions to deny access to your folder to other user.



                      The fist involves making sure that the result cannot be opened by any user without knowing the password used.



                      The second will only change the file / folder privileges so that another user without rights cannot open it. The folder still exists, can be accessed by any user with sudo rights in your system or using a LiveCD and reading the partition. It is also simpler to implement and does not require that you type a password all the time you need to open / mount the encrypted folder / archive.



                      An easy and fast way to do so is using chmod to change the privileges for a file or folder.



                      Open a terminal and navigate to the place where your folder is, lets assume that the folder name is foo and that we are currently located where the folder is.



                      chmod 700 foo


                      will make foo only available for your eyes, its not encrypted (that is also possible) but only your user (and or a user with sudo privileges) can read or open that file / folder.



                      You can also do it graphically by right clicking on a file or folder and changing its permissions manually. In the example bellow you as owner have all privileges and you deny any other group or user from accessing, reading or modifying that file / folder



                      enter image description here



                      For more information about file / folder permissions visit the Ubuntu Understanding and Using File Permissions wiki page.






                      share|improve this answer


























                      • +1 can't go wrong with those elusive yet simple solutions.

                        – Aaron
                        Feb 16 '12 at 1:03











                      • Sounds great, but doesn't make much sense. How do I simply "change the privileges" for a while or folder?

                        – Gonzoza
                        Feb 16 '12 at 7:12











                      • You're dealing with newbies here. What does "using the command" mean? If I click on a folder, then how do "use a command"?

                        – Gonzoza
                        Feb 16 '12 at 9:50











                      • I have added that to the answer also, right click a folder and go to the permissions and have a look at it. The example given would make the file / folder only accessible by you or a user with sudo rights. It is the same as issuing chmod 700 <folder_name> in a terminal.

                        – Bruno Pereira
                        Feb 16 '12 at 10:01













                      • Brilliant. I shall try that. EDIT: Hang on. Doesn't that only work if someone else is logged on to my PC? Right now, I am logged on - and am the only user - so therefore, I can access all those folders without typing in a password.

                        – Gonzoza
                        Feb 16 '12 at 12:55


















                      9














                      You have 2 choices if you want to lock down a folder from other users




                      • Encrypt or create a compressed password protect archive of the files. The methods in https://askubuntu.com/a/104545/25863 and https://askubuntu.com/a/104984/25863 are perfect for this case when you need to be 100% sure no one will ever look at your files without knowing the password used there.


                      • Use your computer folder / file permissions to deny access to your folder to other user.



                      The fist involves making sure that the result cannot be opened by any user without knowing the password used.



                      The second will only change the file / folder privileges so that another user without rights cannot open it. The folder still exists, can be accessed by any user with sudo rights in your system or using a LiveCD and reading the partition. It is also simpler to implement and does not require that you type a password all the time you need to open / mount the encrypted folder / archive.



                      An easy and fast way to do so is using chmod to change the privileges for a file or folder.



                      Open a terminal and navigate to the place where your folder is, lets assume that the folder name is foo and that we are currently located where the folder is.



                      chmod 700 foo


                      will make foo only available for your eyes, its not encrypted (that is also possible) but only your user (and or a user with sudo privileges) can read or open that file / folder.



                      You can also do it graphically by right clicking on a file or folder and changing its permissions manually. In the example bellow you as owner have all privileges and you deny any other group or user from accessing, reading or modifying that file / folder



                      enter image description here



                      For more information about file / folder permissions visit the Ubuntu Understanding and Using File Permissions wiki page.






                      share|improve this answer


























                      • +1 can't go wrong with those elusive yet simple solutions.

                        – Aaron
                        Feb 16 '12 at 1:03











                      • Sounds great, but doesn't make much sense. How do I simply "change the privileges" for a while or folder?

                        – Gonzoza
                        Feb 16 '12 at 7:12











                      • You're dealing with newbies here. What does "using the command" mean? If I click on a folder, then how do "use a command"?

                        – Gonzoza
                        Feb 16 '12 at 9:50











                      • I have added that to the answer also, right click a folder and go to the permissions and have a look at it. The example given would make the file / folder only accessible by you or a user with sudo rights. It is the same as issuing chmod 700 <folder_name> in a terminal.

                        – Bruno Pereira
                        Feb 16 '12 at 10:01













                      • Brilliant. I shall try that. EDIT: Hang on. Doesn't that only work if someone else is logged on to my PC? Right now, I am logged on - and am the only user - so therefore, I can access all those folders without typing in a password.

                        – Gonzoza
                        Feb 16 '12 at 12:55
















                      9












                      9








                      9







                      You have 2 choices if you want to lock down a folder from other users




                      • Encrypt or create a compressed password protect archive of the files. The methods in https://askubuntu.com/a/104545/25863 and https://askubuntu.com/a/104984/25863 are perfect for this case when you need to be 100% sure no one will ever look at your files without knowing the password used there.


                      • Use your computer folder / file permissions to deny access to your folder to other user.



                      The fist involves making sure that the result cannot be opened by any user without knowing the password used.



                      The second will only change the file / folder privileges so that another user without rights cannot open it. The folder still exists, can be accessed by any user with sudo rights in your system or using a LiveCD and reading the partition. It is also simpler to implement and does not require that you type a password all the time you need to open / mount the encrypted folder / archive.



                      An easy and fast way to do so is using chmod to change the privileges for a file or folder.



                      Open a terminal and navigate to the place where your folder is, lets assume that the folder name is foo and that we are currently located where the folder is.



                      chmod 700 foo


                      will make foo only available for your eyes, its not encrypted (that is also possible) but only your user (and or a user with sudo privileges) can read or open that file / folder.



                      You can also do it graphically by right clicking on a file or folder and changing its permissions manually. In the example bellow you as owner have all privileges and you deny any other group or user from accessing, reading or modifying that file / folder



                      enter image description here



                      For more information about file / folder permissions visit the Ubuntu Understanding and Using File Permissions wiki page.






                      share|improve this answer















                      You have 2 choices if you want to lock down a folder from other users




                      • Encrypt or create a compressed password protect archive of the files. The methods in https://askubuntu.com/a/104545/25863 and https://askubuntu.com/a/104984/25863 are perfect for this case when you need to be 100% sure no one will ever look at your files without knowing the password used there.


                      • Use your computer folder / file permissions to deny access to your folder to other user.



                      The fist involves making sure that the result cannot be opened by any user without knowing the password used.



                      The second will only change the file / folder privileges so that another user without rights cannot open it. The folder still exists, can be accessed by any user with sudo rights in your system or using a LiveCD and reading the partition. It is also simpler to implement and does not require that you type a password all the time you need to open / mount the encrypted folder / archive.



                      An easy and fast way to do so is using chmod to change the privileges for a file or folder.



                      Open a terminal and navigate to the place where your folder is, lets assume that the folder name is foo and that we are currently located where the folder is.



                      chmod 700 foo


                      will make foo only available for your eyes, its not encrypted (that is also possible) but only your user (and or a user with sudo privileges) can read or open that file / folder.



                      You can also do it graphically by right clicking on a file or folder and changing its permissions manually. In the example bellow you as owner have all privileges and you deny any other group or user from accessing, reading or modifying that file / folder



                      enter image description here



                      For more information about file / folder permissions visit the Ubuntu Understanding and Using File Permissions wiki page.







                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited Apr 13 '17 at 12:25









                      Community

                      1




                      1










                      answered Feb 15 '12 at 21:06









                      Bruno PereiraBruno Pereira

                      60.2k26179208




                      60.2k26179208













                      • +1 can't go wrong with those elusive yet simple solutions.

                        – Aaron
                        Feb 16 '12 at 1:03











                      • Sounds great, but doesn't make much sense. How do I simply "change the privileges" for a while or folder?

                        – Gonzoza
                        Feb 16 '12 at 7:12











                      • You're dealing with newbies here. What does "using the command" mean? If I click on a folder, then how do "use a command"?

                        – Gonzoza
                        Feb 16 '12 at 9:50











                      • I have added that to the answer also, right click a folder and go to the permissions and have a look at it. The example given would make the file / folder only accessible by you or a user with sudo rights. It is the same as issuing chmod 700 <folder_name> in a terminal.

                        – Bruno Pereira
                        Feb 16 '12 at 10:01













                      • Brilliant. I shall try that. EDIT: Hang on. Doesn't that only work if someone else is logged on to my PC? Right now, I am logged on - and am the only user - so therefore, I can access all those folders without typing in a password.

                        – Gonzoza
                        Feb 16 '12 at 12:55





















                      • +1 can't go wrong with those elusive yet simple solutions.

                        – Aaron
                        Feb 16 '12 at 1:03











                      • Sounds great, but doesn't make much sense. How do I simply "change the privileges" for a while or folder?

                        – Gonzoza
                        Feb 16 '12 at 7:12











                      • You're dealing with newbies here. What does "using the command" mean? If I click on a folder, then how do "use a command"?

                        – Gonzoza
                        Feb 16 '12 at 9:50











                      • I have added that to the answer also, right click a folder and go to the permissions and have a look at it. The example given would make the file / folder only accessible by you or a user with sudo rights. It is the same as issuing chmod 700 <folder_name> in a terminal.

                        – Bruno Pereira
                        Feb 16 '12 at 10:01













                      • Brilliant. I shall try that. EDIT: Hang on. Doesn't that only work if someone else is logged on to my PC? Right now, I am logged on - and am the only user - so therefore, I can access all those folders without typing in a password.

                        – Gonzoza
                        Feb 16 '12 at 12:55



















                      +1 can't go wrong with those elusive yet simple solutions.

                      – Aaron
                      Feb 16 '12 at 1:03





                      +1 can't go wrong with those elusive yet simple solutions.

                      – Aaron
                      Feb 16 '12 at 1:03













                      Sounds great, but doesn't make much sense. How do I simply "change the privileges" for a while or folder?

                      – Gonzoza
                      Feb 16 '12 at 7:12





                      Sounds great, but doesn't make much sense. How do I simply "change the privileges" for a while or folder?

                      – Gonzoza
                      Feb 16 '12 at 7:12













                      You're dealing with newbies here. What does "using the command" mean? If I click on a folder, then how do "use a command"?

                      – Gonzoza
                      Feb 16 '12 at 9:50





                      You're dealing with newbies here. What does "using the command" mean? If I click on a folder, then how do "use a command"?

                      – Gonzoza
                      Feb 16 '12 at 9:50













                      I have added that to the answer also, right click a folder and go to the permissions and have a look at it. The example given would make the file / folder only accessible by you or a user with sudo rights. It is the same as issuing chmod 700 <folder_name> in a terminal.

                      – Bruno Pereira
                      Feb 16 '12 at 10:01







                      I have added that to the answer also, right click a folder and go to the permissions and have a look at it. The example given would make the file / folder only accessible by you or a user with sudo rights. It is the same as issuing chmod 700 <folder_name> in a terminal.

                      – Bruno Pereira
                      Feb 16 '12 at 10:01















                      Brilliant. I shall try that. EDIT: Hang on. Doesn't that only work if someone else is logged on to my PC? Right now, I am logged on - and am the only user - so therefore, I can access all those folders without typing in a password.

                      – Gonzoza
                      Feb 16 '12 at 12:55







                      Brilliant. I shall try that. EDIT: Hang on. Doesn't that only work if someone else is logged on to my PC? Right now, I am logged on - and am the only user - so therefore, I can access all those folders without typing in a password.

                      – Gonzoza
                      Feb 16 '12 at 12:55













                      4














                      You can try Vault, recent project by an ubuntu-gr member (greek local community): http://clepto.github.com/ - https://github.com/Clepto/Vault



                      PPA: https://launchpad.net/~vault/+archive/ppa



                      sudo add-apt-repository ppa:vault/ppa
                      sudo apt-get update
                      sudo apt-get install vault


                      It's a gui utility for encfs (package in repositories). I quote the package description:



                      $ apt-cache show encfs
                      Package: encfs
                      [...]
                      Description-en: encrypted virtual filesystem
                      EncFS integrates file system encryption into the Unix(TM) file system.
                      Encrypted data is stored within the native file system, thus no
                      fixed-size loopback image is required.
                      .
                      EncFS uses the FUSE kernel driver and library as a backend.
                      Homepage: http://www.arg0.net/encfs


                      You create a mountpoint/folder which you can then close or delete. If you close it, you need a password to open it.



                      enter image description here






                      share|improve this answer



















                      • 2





                        ppa does not exist anymore.

                        – user4381
                        Dec 20 '16 at 14:51
















                      4














                      You can try Vault, recent project by an ubuntu-gr member (greek local community): http://clepto.github.com/ - https://github.com/Clepto/Vault



                      PPA: https://launchpad.net/~vault/+archive/ppa



                      sudo add-apt-repository ppa:vault/ppa
                      sudo apt-get update
                      sudo apt-get install vault


                      It's a gui utility for encfs (package in repositories). I quote the package description:



                      $ apt-cache show encfs
                      Package: encfs
                      [...]
                      Description-en: encrypted virtual filesystem
                      EncFS integrates file system encryption into the Unix(TM) file system.
                      Encrypted data is stored within the native file system, thus no
                      fixed-size loopback image is required.
                      .
                      EncFS uses the FUSE kernel driver and library as a backend.
                      Homepage: http://www.arg0.net/encfs


                      You create a mountpoint/folder which you can then close or delete. If you close it, you need a password to open it.



                      enter image description here






                      share|improve this answer



















                      • 2





                        ppa does not exist anymore.

                        – user4381
                        Dec 20 '16 at 14:51














                      4












                      4








                      4







                      You can try Vault, recent project by an ubuntu-gr member (greek local community): http://clepto.github.com/ - https://github.com/Clepto/Vault



                      PPA: https://launchpad.net/~vault/+archive/ppa



                      sudo add-apt-repository ppa:vault/ppa
                      sudo apt-get update
                      sudo apt-get install vault


                      It's a gui utility for encfs (package in repositories). I quote the package description:



                      $ apt-cache show encfs
                      Package: encfs
                      [...]
                      Description-en: encrypted virtual filesystem
                      EncFS integrates file system encryption into the Unix(TM) file system.
                      Encrypted data is stored within the native file system, thus no
                      fixed-size loopback image is required.
                      .
                      EncFS uses the FUSE kernel driver and library as a backend.
                      Homepage: http://www.arg0.net/encfs


                      You create a mountpoint/folder which you can then close or delete. If you close it, you need a password to open it.



                      enter image description here






                      share|improve this answer













                      You can try Vault, recent project by an ubuntu-gr member (greek local community): http://clepto.github.com/ - https://github.com/Clepto/Vault



                      PPA: https://launchpad.net/~vault/+archive/ppa



                      sudo add-apt-repository ppa:vault/ppa
                      sudo apt-get update
                      sudo apt-get install vault


                      It's a gui utility for encfs (package in repositories). I quote the package description:



                      $ apt-cache show encfs
                      Package: encfs
                      [...]
                      Description-en: encrypted virtual filesystem
                      EncFS integrates file system encryption into the Unix(TM) file system.
                      Encrypted data is stored within the native file system, thus no
                      fixed-size loopback image is required.
                      .
                      EncFS uses the FUSE kernel driver and library as a backend.
                      Homepage: http://www.arg0.net/encfs


                      You create a mountpoint/folder which you can then close or delete. If you close it, you need a password to open it.



                      enter image description here







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Feb 15 '12 at 21:39









                      Savvas RadevicSavvas Radevic

                      6,37213244




                      6,37213244








                      • 2





                        ppa does not exist anymore.

                        – user4381
                        Dec 20 '16 at 14:51














                      • 2





                        ppa does not exist anymore.

                        – user4381
                        Dec 20 '16 at 14:51








                      2




                      2





                      ppa does not exist anymore.

                      – user4381
                      Dec 20 '16 at 14:51





                      ppa does not exist anymore.

                      – user4381
                      Dec 20 '16 at 14:51











                      3














                      Another way, depending on your needs is to archive the folder as a password protected zip file.



                      This is similar to another question about password protecting files.






                      share|improve this answer






























                        3














                        Another way, depending on your needs is to archive the folder as a password protected zip file.



                        This is similar to another question about password protecting files.






                        share|improve this answer




























                          3












                          3








                          3







                          Another way, depending on your needs is to archive the folder as a password protected zip file.



                          This is similar to another question about password protecting files.






                          share|improve this answer















                          Another way, depending on your needs is to archive the folder as a password protected zip file.



                          This is similar to another question about password protecting files.







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Apr 13 '17 at 12:23









                          Community

                          1




                          1










                          answered Feb 15 '12 at 21:28









                          Richard HollowayRichard Holloway

                          20.7k54252




                          20.7k54252























                              1














                              You can use CryFS



                              cryfs basedir mountdir


                              It is used by default in KDE Vaults and is particularly interesting if you synchronize the encrypted content over Dropbox, Freefilesync, rsync or similar software, because it keeps its data in small encrypted blocks and changing a small file results in only a small amount of data to be re-uploaded.






                              share|improve this answer


























                              • I would advise against cryfs because it doesn't support (standard Unix) hard links.

                                – arielf
                                Jan 14 at 22:56
















                              1














                              You can use CryFS



                              cryfs basedir mountdir


                              It is used by default in KDE Vaults and is particularly interesting if you synchronize the encrypted content over Dropbox, Freefilesync, rsync or similar software, because it keeps its data in small encrypted blocks and changing a small file results in only a small amount of data to be re-uploaded.






                              share|improve this answer


























                              • I would advise against cryfs because it doesn't support (standard Unix) hard links.

                                – arielf
                                Jan 14 at 22:56














                              1












                              1








                              1







                              You can use CryFS



                              cryfs basedir mountdir


                              It is used by default in KDE Vaults and is particularly interesting if you synchronize the encrypted content over Dropbox, Freefilesync, rsync or similar software, because it keeps its data in small encrypted blocks and changing a small file results in only a small amount of data to be re-uploaded.






                              share|improve this answer















                              You can use CryFS



                              cryfs basedir mountdir


                              It is used by default in KDE Vaults and is particularly interesting if you synchronize the encrypted content over Dropbox, Freefilesync, rsync or similar software, because it keeps its data in small encrypted blocks and changing a small file results in only a small amount of data to be re-uploaded.







                              share|improve this answer














                              share|improve this answer



                              share|improve this answer








                              edited Jan 15 at 5:59

























                              answered Jun 25 '18 at 17:28









                              BruniBruni

                              5,10942554




                              5,10942554













                              • I would advise against cryfs because it doesn't support (standard Unix) hard links.

                                – arielf
                                Jan 14 at 22:56



















                              • I would advise against cryfs because it doesn't support (standard Unix) hard links.

                                – arielf
                                Jan 14 at 22:56

















                              I would advise against cryfs because it doesn't support (standard Unix) hard links.

                              – arielf
                              Jan 14 at 22:56





                              I would advise against cryfs because it doesn't support (standard Unix) hard links.

                              – arielf
                              Jan 14 at 22:56


















                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Ask Ubuntu!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f104542%2fhow-to-encrypt-individual-folders%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

                              ComboBox Display Member on multiple fields

                              Is it possible to collect Nectar points via Trainline?