How to stop permissions on data partition being changed on boot?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I have a data partition (ext4 filesystem) that I mount onto /data, with my user account (the one I use across all distros, same username, same uid and in the wheel group) and the wheel group being its owner, and symlink to the appropriate locations on my home directory. Until I started to use it as a home partition for a few distros (e.g. openSUSE Tumbleweed) everything was going fine, with merely symlinking everything. There were no permission issues. The issue I'm about to describe seems to have begun when I started using it on /home.



After booting Arch I choose to boot openSUSE Tumbleweed and even though it is no longer mounted on /home, only on /data is it mounted, its ownership and file ownership is changed from fusion809:wheel to 1000:998 with 1000 being my users' uid on all my distros. Unfortunately, with this change many files and directories become read-only or unreadable, which is odd given the uid situation. As a result I have to run sudo chown fusion809:wheel /data and other commands to correct it (as this command doesn't change ownership for all subdirectories or files, adding the -R option doesn't fix this either), which is tedious and irritating. I get similar ownership difficulties (can't remember the precise permissions ls -ld showed) when I've booted Arch. To be clear, this doesn't just occur when I switch between distros, this also occurs when I boot Tumbleweed after booting Tumbleweed and boot Arch after Arch.









share

























    up vote
    0
    down vote

    favorite












    I have a data partition (ext4 filesystem) that I mount onto /data, with my user account (the one I use across all distros, same username, same uid and in the wheel group) and the wheel group being its owner, and symlink to the appropriate locations on my home directory. Until I started to use it as a home partition for a few distros (e.g. openSUSE Tumbleweed) everything was going fine, with merely symlinking everything. There were no permission issues. The issue I'm about to describe seems to have begun when I started using it on /home.



    After booting Arch I choose to boot openSUSE Tumbleweed and even though it is no longer mounted on /home, only on /data is it mounted, its ownership and file ownership is changed from fusion809:wheel to 1000:998 with 1000 being my users' uid on all my distros. Unfortunately, with this change many files and directories become read-only or unreadable, which is odd given the uid situation. As a result I have to run sudo chown fusion809:wheel /data and other commands to correct it (as this command doesn't change ownership for all subdirectories or files, adding the -R option doesn't fix this either), which is tedious and irritating. I get similar ownership difficulties (can't remember the precise permissions ls -ld showed) when I've booted Arch. To be clear, this doesn't just occur when I switch between distros, this also occurs when I boot Tumbleweed after booting Tumbleweed and boot Arch after Arch.









    share























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have a data partition (ext4 filesystem) that I mount onto /data, with my user account (the one I use across all distros, same username, same uid and in the wheel group) and the wheel group being its owner, and symlink to the appropriate locations on my home directory. Until I started to use it as a home partition for a few distros (e.g. openSUSE Tumbleweed) everything was going fine, with merely symlinking everything. There were no permission issues. The issue I'm about to describe seems to have begun when I started using it on /home.



      After booting Arch I choose to boot openSUSE Tumbleweed and even though it is no longer mounted on /home, only on /data is it mounted, its ownership and file ownership is changed from fusion809:wheel to 1000:998 with 1000 being my users' uid on all my distros. Unfortunately, with this change many files and directories become read-only or unreadable, which is odd given the uid situation. As a result I have to run sudo chown fusion809:wheel /data and other commands to correct it (as this command doesn't change ownership for all subdirectories or files, adding the -R option doesn't fix this either), which is tedious and irritating. I get similar ownership difficulties (can't remember the precise permissions ls -ld showed) when I've booted Arch. To be clear, this doesn't just occur when I switch between distros, this also occurs when I boot Tumbleweed after booting Tumbleweed and boot Arch after Arch.









      share













      I have a data partition (ext4 filesystem) that I mount onto /data, with my user account (the one I use across all distros, same username, same uid and in the wheel group) and the wheel group being its owner, and symlink to the appropriate locations on my home directory. Until I started to use it as a home partition for a few distros (e.g. openSUSE Tumbleweed) everything was going fine, with merely symlinking everything. There were no permission issues. The issue I'm about to describe seems to have begun when I started using it on /home.



      After booting Arch I choose to boot openSUSE Tumbleweed and even though it is no longer mounted on /home, only on /data is it mounted, its ownership and file ownership is changed from fusion809:wheel to 1000:998 with 1000 being my users' uid on all my distros. Unfortunately, with this change many files and directories become read-only or unreadable, which is odd given the uid situation. As a result I have to run sudo chown fusion809:wheel /data and other commands to correct it (as this command doesn't change ownership for all subdirectories or files, adding the -R option doesn't fix this either), which is tedious and irritating. I get similar ownership difficulties (can't remember the precise permissions ls -ld showed) when I've booted Arch. To be clear, this doesn't just occur when I switch between distros, this also occurs when I boot Tumbleweed after booting Tumbleweed and boot Arch after Arch.







      dual-boot home ownership





      share












      share










      share



      share










      asked 4 mins ago









      Brenton Horne

      1,39432146




      1,39432146

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          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: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f474718%2fhow-to-stop-permissions-on-data-partition-being-changed-on-boot%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f474718%2fhow-to-stop-permissions-on-data-partition-being-changed-on-boot%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?