Encrypted /tmp gets invalid access rights in Ubuntu 16.04.4

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








up vote
0
down vote

favorite












OS: Ubuntu 16.04.4



uname -a: Linux localhost 4.15.12-x86_64-linode105 #1 SMP Thu Mar 22 02:13:40 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux



cryptsetup version: 1.6.6-5ubuntu2.1



/etc/crypttab line:



ctmp /dev/sdc /dev/urandom tmp


/etc/fstab line:



/dev/mapper/ctmp /tmp ext2 defaults,noatime,nofail 0 0


/usr/lib/tmpfiles.d/tmp.conf line (unchanged)



D /tmp 1777 root root -


Problem: after OS boots up, the permissions for /tmp are set to 755, which breaks a number of services.



If I umount /tmp, permissions for it are 1777, as expected. If I set permissions to mounted /tmp and reboot the system, it's again 755.



Is it possible to set encrypted /tmp to have and retain correct access rights automatically?










share|improve this question

























    up vote
    0
    down vote

    favorite












    OS: Ubuntu 16.04.4



    uname -a: Linux localhost 4.15.12-x86_64-linode105 #1 SMP Thu Mar 22 02:13:40 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux



    cryptsetup version: 1.6.6-5ubuntu2.1



    /etc/crypttab line:



    ctmp /dev/sdc /dev/urandom tmp


    /etc/fstab line:



    /dev/mapper/ctmp /tmp ext2 defaults,noatime,nofail 0 0


    /usr/lib/tmpfiles.d/tmp.conf line (unchanged)



    D /tmp 1777 root root -


    Problem: after OS boots up, the permissions for /tmp are set to 755, which breaks a number of services.



    If I umount /tmp, permissions for it are 1777, as expected. If I set permissions to mounted /tmp and reboot the system, it's again 755.



    Is it possible to set encrypted /tmp to have and retain correct access rights automatically?










    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      OS: Ubuntu 16.04.4



      uname -a: Linux localhost 4.15.12-x86_64-linode105 #1 SMP Thu Mar 22 02:13:40 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux



      cryptsetup version: 1.6.6-5ubuntu2.1



      /etc/crypttab line:



      ctmp /dev/sdc /dev/urandom tmp


      /etc/fstab line:



      /dev/mapper/ctmp /tmp ext2 defaults,noatime,nofail 0 0


      /usr/lib/tmpfiles.d/tmp.conf line (unchanged)



      D /tmp 1777 root root -


      Problem: after OS boots up, the permissions for /tmp are set to 755, which breaks a number of services.



      If I umount /tmp, permissions for it are 1777, as expected. If I set permissions to mounted /tmp and reboot the system, it's again 755.



      Is it possible to set encrypted /tmp to have and retain correct access rights automatically?










      share|improve this question













      OS: Ubuntu 16.04.4



      uname -a: Linux localhost 4.15.12-x86_64-linode105 #1 SMP Thu Mar 22 02:13:40 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux



      cryptsetup version: 1.6.6-5ubuntu2.1



      /etc/crypttab line:



      ctmp /dev/sdc /dev/urandom tmp


      /etc/fstab line:



      /dev/mapper/ctmp /tmp ext2 defaults,noatime,nofail 0 0


      /usr/lib/tmpfiles.d/tmp.conf line (unchanged)



      D /tmp 1777 root root -


      Problem: after OS boots up, the permissions for /tmp are set to 755, which breaks a number of services.



      If I umount /tmp, permissions for it are 1777, as expected. If I set permissions to mounted /tmp and reboot the system, it's again 755.



      Is it possible to set encrypted /tmp to have and retain correct access rights automatically?







      16.04 cryptsetup






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 3 at 14:09









      Konstantin Boyandin

      234




      234

























          active

          oldest

          votes











          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: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          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%2faskubuntu.com%2fquestions%2f1021635%2fencrypted-tmp-gets-invalid-access-rights-in-ubuntu-16-04-4%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%2faskubuntu.com%2fquestions%2f1021635%2fencrypted-tmp-gets-invalid-access-rights-in-ubuntu-16-04-4%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          Trouble downloading packages list due to a “Hash sum mismatch” error

          How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

          Cutting all the characters after the last /