What are correct permissions for Thunderbird?











up vote
0
down vote

favorite












I made a bit of a mess of a Thunderbird migration (call it case A), and ended up with 755 on all folders and files in a Thunderbird profile (stupid of me, I know).



Anyway, looking at a different install of Thunderbird (case B), I saw that the profile folder had a mix of 700 and 777 on folders, and 600, 644, 755, 777 on files. There are more than likely other octals that can be added to both of those lists!



Case B will have been through several migrations before (i.e. moving the profile xxxxxxxx.default folder from machine to machine), so exactly when those various folders and files got those various permissions I have no idea. Are they 'correct'? Does the 'move the profile folder' method undermine any changes in later versions of the software? If so, is there a better migration method?



In terms of changing case A, I've got no way of knowing what to change to what (it all seems to run OK at 755 anyway), and I'm sure it would be a long potentially error strewn process. So my question is, do I;




  1. just leave it all at 755

  2. or do I somehow extract messages and addresses into a clean install with some tool that sets the permissions to what they should be, if so what tool?










share|improve this question


























    up vote
    0
    down vote

    favorite












    I made a bit of a mess of a Thunderbird migration (call it case A), and ended up with 755 on all folders and files in a Thunderbird profile (stupid of me, I know).



    Anyway, looking at a different install of Thunderbird (case B), I saw that the profile folder had a mix of 700 and 777 on folders, and 600, 644, 755, 777 on files. There are more than likely other octals that can be added to both of those lists!



    Case B will have been through several migrations before (i.e. moving the profile xxxxxxxx.default folder from machine to machine), so exactly when those various folders and files got those various permissions I have no idea. Are they 'correct'? Does the 'move the profile folder' method undermine any changes in later versions of the software? If so, is there a better migration method?



    In terms of changing case A, I've got no way of knowing what to change to what (it all seems to run OK at 755 anyway), and I'm sure it would be a long potentially error strewn process. So my question is, do I;




    1. just leave it all at 755

    2. or do I somehow extract messages and addresses into a clean install with some tool that sets the permissions to what they should be, if so what tool?










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I made a bit of a mess of a Thunderbird migration (call it case A), and ended up with 755 on all folders and files in a Thunderbird profile (stupid of me, I know).



      Anyway, looking at a different install of Thunderbird (case B), I saw that the profile folder had a mix of 700 and 777 on folders, and 600, 644, 755, 777 on files. There are more than likely other octals that can be added to both of those lists!



      Case B will have been through several migrations before (i.e. moving the profile xxxxxxxx.default folder from machine to machine), so exactly when those various folders and files got those various permissions I have no idea. Are they 'correct'? Does the 'move the profile folder' method undermine any changes in later versions of the software? If so, is there a better migration method?



      In terms of changing case A, I've got no way of knowing what to change to what (it all seems to run OK at 755 anyway), and I'm sure it would be a long potentially error strewn process. So my question is, do I;




      1. just leave it all at 755

      2. or do I somehow extract messages and addresses into a clean install with some tool that sets the permissions to what they should be, if so what tool?










      share|improve this question













      I made a bit of a mess of a Thunderbird migration (call it case A), and ended up with 755 on all folders and files in a Thunderbird profile (stupid of me, I know).



      Anyway, looking at a different install of Thunderbird (case B), I saw that the profile folder had a mix of 700 and 777 on folders, and 600, 644, 755, 777 on files. There are more than likely other octals that can be added to both of those lists!



      Case B will have been through several migrations before (i.e. moving the profile xxxxxxxx.default folder from machine to machine), so exactly when those various folders and files got those various permissions I have no idea. Are they 'correct'? Does the 'move the profile folder' method undermine any changes in later versions of the software? If so, is there a better migration method?



      In terms of changing case A, I've got no way of knowing what to change to what (it all seems to run OK at 755 anyway), and I'm sure it would be a long potentially error strewn process. So my question is, do I;




      1. just leave it all at 755

      2. or do I somehow extract messages and addresses into a clean install with some tool that sets the permissions to what they should be, if so what tool?







      permissions






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 24 at 16:17









      Dan_7378439012

      387




      387






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          I just examined my ~/.thunderbird/abcd0123.default
          directory and the files therein and observed the following:



          Files




          • Allmost all files have -rw-------, in particular none has an x flag.

          • Some files have -rw-r--r--

          • Some files have -rw-rw-r--

          • There doesn't seem to be a pattern which file has -rw-rw-r-- and which has -rw-------.
            Some *.msf files have -rw-rw-r-- while others have -rw------- and they aren't any
            different.

          • The additional group rw is irrelevant because all files are owned by me and my group anyway
            and no one else (besides me) is member of my group.


          Directories




          • Almost all directories have drwx------

          • Two (of 56 in my case) have drwxr-xr-x but again: I don't see why because they aren't any different from the others.


          Conclusion



          If you want to cleanup the permissions, I suggest the following commands (make sure to exit Thunderbird first):



          cd ~/.thunderbird
          find $your_profile_dir -type f -exec chmod 600 {} +
          find $your_profile_dir -type d -exec chmod 700 {} +


          Also make sure all files are owned by you and your group:



          cd ~/.thunderbird
          sudo chown -R dan:dan $your_profile_dir
          # (replace "dan" with your actual username)


          Maybe it's advisable to make a backup first, e.g.:



          cd ~/.thunderbird
          tar -c -z -f $your_profile_dir.tar.gz $your_profile_dir


          (whispers) I wouldn't because if the new permissions turn out to be wrong you can
          simply revert them back to your current situation (find … chmod 755 …)






          share|improve this answer























            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',
            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%2f1095685%2fwhat-are-correct-permissions-for-thunderbird%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            I just examined my ~/.thunderbird/abcd0123.default
            directory and the files therein and observed the following:



            Files




            • Allmost all files have -rw-------, in particular none has an x flag.

            • Some files have -rw-r--r--

            • Some files have -rw-rw-r--

            • There doesn't seem to be a pattern which file has -rw-rw-r-- and which has -rw-------.
              Some *.msf files have -rw-rw-r-- while others have -rw------- and they aren't any
              different.

            • The additional group rw is irrelevant because all files are owned by me and my group anyway
              and no one else (besides me) is member of my group.


            Directories




            • Almost all directories have drwx------

            • Two (of 56 in my case) have drwxr-xr-x but again: I don't see why because they aren't any different from the others.


            Conclusion



            If you want to cleanup the permissions, I suggest the following commands (make sure to exit Thunderbird first):



            cd ~/.thunderbird
            find $your_profile_dir -type f -exec chmod 600 {} +
            find $your_profile_dir -type d -exec chmod 700 {} +


            Also make sure all files are owned by you and your group:



            cd ~/.thunderbird
            sudo chown -R dan:dan $your_profile_dir
            # (replace "dan" with your actual username)


            Maybe it's advisable to make a backup first, e.g.:



            cd ~/.thunderbird
            tar -c -z -f $your_profile_dir.tar.gz $your_profile_dir


            (whispers) I wouldn't because if the new permissions turn out to be wrong you can
            simply revert them back to your current situation (find … chmod 755 …)






            share|improve this answer



























              up vote
              0
              down vote













              I just examined my ~/.thunderbird/abcd0123.default
              directory and the files therein and observed the following:



              Files




              • Allmost all files have -rw-------, in particular none has an x flag.

              • Some files have -rw-r--r--

              • Some files have -rw-rw-r--

              • There doesn't seem to be a pattern which file has -rw-rw-r-- and which has -rw-------.
                Some *.msf files have -rw-rw-r-- while others have -rw------- and they aren't any
                different.

              • The additional group rw is irrelevant because all files are owned by me and my group anyway
                and no one else (besides me) is member of my group.


              Directories




              • Almost all directories have drwx------

              • Two (of 56 in my case) have drwxr-xr-x but again: I don't see why because they aren't any different from the others.


              Conclusion



              If you want to cleanup the permissions, I suggest the following commands (make sure to exit Thunderbird first):



              cd ~/.thunderbird
              find $your_profile_dir -type f -exec chmod 600 {} +
              find $your_profile_dir -type d -exec chmod 700 {} +


              Also make sure all files are owned by you and your group:



              cd ~/.thunderbird
              sudo chown -R dan:dan $your_profile_dir
              # (replace "dan" with your actual username)


              Maybe it's advisable to make a backup first, e.g.:



              cd ~/.thunderbird
              tar -c -z -f $your_profile_dir.tar.gz $your_profile_dir


              (whispers) I wouldn't because if the new permissions turn out to be wrong you can
              simply revert them back to your current situation (find … chmod 755 …)






              share|improve this answer

























                up vote
                0
                down vote










                up vote
                0
                down vote









                I just examined my ~/.thunderbird/abcd0123.default
                directory and the files therein and observed the following:



                Files




                • Allmost all files have -rw-------, in particular none has an x flag.

                • Some files have -rw-r--r--

                • Some files have -rw-rw-r--

                • There doesn't seem to be a pattern which file has -rw-rw-r-- and which has -rw-------.
                  Some *.msf files have -rw-rw-r-- while others have -rw------- and they aren't any
                  different.

                • The additional group rw is irrelevant because all files are owned by me and my group anyway
                  and no one else (besides me) is member of my group.


                Directories




                • Almost all directories have drwx------

                • Two (of 56 in my case) have drwxr-xr-x but again: I don't see why because they aren't any different from the others.


                Conclusion



                If you want to cleanup the permissions, I suggest the following commands (make sure to exit Thunderbird first):



                cd ~/.thunderbird
                find $your_profile_dir -type f -exec chmod 600 {} +
                find $your_profile_dir -type d -exec chmod 700 {} +


                Also make sure all files are owned by you and your group:



                cd ~/.thunderbird
                sudo chown -R dan:dan $your_profile_dir
                # (replace "dan" with your actual username)


                Maybe it's advisable to make a backup first, e.g.:



                cd ~/.thunderbird
                tar -c -z -f $your_profile_dir.tar.gz $your_profile_dir


                (whispers) I wouldn't because if the new permissions turn out to be wrong you can
                simply revert them back to your current situation (find … chmod 755 …)






                share|improve this answer














                I just examined my ~/.thunderbird/abcd0123.default
                directory and the files therein and observed the following:



                Files




                • Allmost all files have -rw-------, in particular none has an x flag.

                • Some files have -rw-r--r--

                • Some files have -rw-rw-r--

                • There doesn't seem to be a pattern which file has -rw-rw-r-- and which has -rw-------.
                  Some *.msf files have -rw-rw-r-- while others have -rw------- and they aren't any
                  different.

                • The additional group rw is irrelevant because all files are owned by me and my group anyway
                  and no one else (besides me) is member of my group.


                Directories




                • Almost all directories have drwx------

                • Two (of 56 in my case) have drwxr-xr-x but again: I don't see why because they aren't any different from the others.


                Conclusion



                If you want to cleanup the permissions, I suggest the following commands (make sure to exit Thunderbird first):



                cd ~/.thunderbird
                find $your_profile_dir -type f -exec chmod 600 {} +
                find $your_profile_dir -type d -exec chmod 700 {} +


                Also make sure all files are owned by you and your group:



                cd ~/.thunderbird
                sudo chown -R dan:dan $your_profile_dir
                # (replace "dan" with your actual username)


                Maybe it's advisable to make a backup first, e.g.:



                cd ~/.thunderbird
                tar -c -z -f $your_profile_dir.tar.gz $your_profile_dir


                (whispers) I wouldn't because if the new permissions turn out to be wrong you can
                simply revert them back to your current situation (find … chmod 755 …)







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Nov 24 at 16:55

























                answered Nov 24 at 16:49









                PerlDuck

                4,95311230




                4,95311230






























                    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.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • 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%2f1095685%2fwhat-are-correct-permissions-for-thunderbird%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

                    How to send String Array data to Server using php in android

                    Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

                    Is anime1.com a legal site for watching anime?