Set umask for systemd unit

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











up vote
3
down vote

favorite












I am running rsync daemon with a specific user on Ubuntu machine. The problem is that since daemon users don't login, the umask set for the user is the default one.



How do I set umask for the user in the daemon process?










share|improve this question



























    up vote
    3
    down vote

    favorite












    I am running rsync daemon with a specific user on Ubuntu machine. The problem is that since daemon users don't login, the umask set for the user is the default one.



    How do I set umask for the user in the daemon process?










    share|improve this question

























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      I am running rsync daemon with a specific user on Ubuntu machine. The problem is that since daemon users don't login, the umask set for the user is the default one.



      How do I set umask for the user in the daemon process?










      share|improve this question















      I am running rsync daemon with a specific user on Ubuntu machine. The problem is that since daemon users don't login, the umask set for the user is the default one.



      How do I set umask for the user in the daemon process?







      systemd umask






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 28 '17 at 22:26









      Gilles

      512k12010151547




      512k12010151547










      asked May 28 '17 at 16:17









      CuriousGuy

      2331211




      2331211




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          There is a Umask= directive in the [Service] section






          share|improve this answer




















            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%2f367757%2fset-umask-for-systemd-unit%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            There is a Umask= directive in the [Service] section






            share|improve this answer
























              up vote
              0
              down vote













              There is a Umask= directive in the [Service] section






              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                There is a Umask= directive in the [Service] section






                share|improve this answer












                There is a Umask= directive in the [Service] section







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Sep 22 at 12:10









                Bigon

                1,188613




                1,188613



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f367757%2fset-umask-for-systemd-unit%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?