Samba keeps warning 'Session closed for user nobody'. Why?











up vote
10
down vote

favorite
2












I've set up an Ubuntu 14.04 server, using Samba to share files to our Windows clients.
Everything appears to be working correctly, but while checking my auth logs, I see the line 'session closed for user nobody' repeated many many times, though no sessions opened for that user. All of the session opened messages have the correct user name included.



I understand the role of the nobody user, but am unsure why Samba keeps generating this message. On one line the 'session closed' message is repeated 58 times with no other auth log messages interrupting.



Is it likely that Samba is incorrectly configured?



I'm happy to post any logs/confs/outputs necessary, if that helps.



EDIT:



I've previously disabled Samba password sync using pam-auth-update to stop the 'No Talloc Stackframe' message, like so, could that be generating all of these session closed messages?










share|improve this question




























    up vote
    10
    down vote

    favorite
    2












    I've set up an Ubuntu 14.04 server, using Samba to share files to our Windows clients.
    Everything appears to be working correctly, but while checking my auth logs, I see the line 'session closed for user nobody' repeated many many times, though no sessions opened for that user. All of the session opened messages have the correct user name included.



    I understand the role of the nobody user, but am unsure why Samba keeps generating this message. On one line the 'session closed' message is repeated 58 times with no other auth log messages interrupting.



    Is it likely that Samba is incorrectly configured?



    I'm happy to post any logs/confs/outputs necessary, if that helps.



    EDIT:



    I've previously disabled Samba password sync using pam-auth-update to stop the 'No Talloc Stackframe' message, like so, could that be generating all of these session closed messages?










    share|improve this question


























      up vote
      10
      down vote

      favorite
      2









      up vote
      10
      down vote

      favorite
      2






      2





      I've set up an Ubuntu 14.04 server, using Samba to share files to our Windows clients.
      Everything appears to be working correctly, but while checking my auth logs, I see the line 'session closed for user nobody' repeated many many times, though no sessions opened for that user. All of the session opened messages have the correct user name included.



      I understand the role of the nobody user, but am unsure why Samba keeps generating this message. On one line the 'session closed' message is repeated 58 times with no other auth log messages interrupting.



      Is it likely that Samba is incorrectly configured?



      I'm happy to post any logs/confs/outputs necessary, if that helps.



      EDIT:



      I've previously disabled Samba password sync using pam-auth-update to stop the 'No Talloc Stackframe' message, like so, could that be generating all of these session closed messages?










      share|improve this question















      I've set up an Ubuntu 14.04 server, using Samba to share files to our Windows clients.
      Everything appears to be working correctly, but while checking my auth logs, I see the line 'session closed for user nobody' repeated many many times, though no sessions opened for that user. All of the session opened messages have the correct user name included.



      I understand the role of the nobody user, but am unsure why Samba keeps generating this message. On one line the 'session closed' message is repeated 58 times with no other auth log messages interrupting.



      Is it likely that Samba is incorrectly configured?



      I'm happy to post any logs/confs/outputs necessary, if that helps.



      EDIT:



      I've previously disabled Samba password sync using pam-auth-update to stop the 'No Talloc Stackframe' message, like so, could that be generating all of these session closed messages?







      14.04 samba authentication file-sharing






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 13 '17 at 12:23









      Community

      1




      1










      asked Feb 10 '15 at 10:27









      Arronical

      12.9k84689




      12.9k84689






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          4
          down vote













          I had this concern myself so I did some digging and ran into a lot of unanswered forum questions, but then I found this answer:




          nobody is a system user that is used to run services e.g. apache and samba on Linux distros. Root has to start the service and then pass on control to the user nobody.







          share|improve this answer






























            up vote
            0
            down vote













            You have created a shared folder owned by "nobody/nogroup"



            sudo chown -R nobody.nogroup /path_to_share/share_folder


            But, you can change that, by changing ownership



            sudo chown -R root.root /path_to_share/share_folder
            sudo chown -R user.user /path_to_share/share_folder # "user" is echo $USER





            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%2f583731%2fsamba-keeps-warning-session-closed-for-user-nobody-why%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              4
              down vote













              I had this concern myself so I did some digging and ran into a lot of unanswered forum questions, but then I found this answer:




              nobody is a system user that is used to run services e.g. apache and samba on Linux distros. Root has to start the service and then pass on control to the user nobody.







              share|improve this answer



























                up vote
                4
                down vote













                I had this concern myself so I did some digging and ran into a lot of unanswered forum questions, but then I found this answer:




                nobody is a system user that is used to run services e.g. apache and samba on Linux distros. Root has to start the service and then pass on control to the user nobody.







                share|improve this answer

























                  up vote
                  4
                  down vote










                  up vote
                  4
                  down vote









                  I had this concern myself so I did some digging and ran into a lot of unanswered forum questions, but then I found this answer:




                  nobody is a system user that is used to run services e.g. apache and samba on Linux distros. Root has to start the service and then pass on control to the user nobody.







                  share|improve this answer














                  I had this concern myself so I did some digging and ran into a lot of unanswered forum questions, but then I found this answer:




                  nobody is a system user that is used to run services e.g. apache and samba on Linux distros. Root has to start the service and then pass on control to the user nobody.








                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Dec 16 '16 at 16:50







                  user308164

















                  answered Dec 16 '16 at 15:23









                  kkalin72

                  412




                  412
























                      up vote
                      0
                      down vote













                      You have created a shared folder owned by "nobody/nogroup"



                      sudo chown -R nobody.nogroup /path_to_share/share_folder


                      But, you can change that, by changing ownership



                      sudo chown -R root.root /path_to_share/share_folder
                      sudo chown -R user.user /path_to_share/share_folder # "user" is echo $USER





                      share|improve this answer



























                        up vote
                        0
                        down vote













                        You have created a shared folder owned by "nobody/nogroup"



                        sudo chown -R nobody.nogroup /path_to_share/share_folder


                        But, you can change that, by changing ownership



                        sudo chown -R root.root /path_to_share/share_folder
                        sudo chown -R user.user /path_to_share/share_folder # "user" is echo $USER





                        share|improve this answer

























                          up vote
                          0
                          down vote










                          up vote
                          0
                          down vote









                          You have created a shared folder owned by "nobody/nogroup"



                          sudo chown -R nobody.nogroup /path_to_share/share_folder


                          But, you can change that, by changing ownership



                          sudo chown -R root.root /path_to_share/share_folder
                          sudo chown -R user.user /path_to_share/share_folder # "user" is echo $USER





                          share|improve this answer














                          You have created a shared folder owned by "nobody/nogroup"



                          sudo chown -R nobody.nogroup /path_to_share/share_folder


                          But, you can change that, by changing ownership



                          sudo chown -R root.root /path_to_share/share_folder
                          sudo chown -R user.user /path_to_share/share_folder # "user" is echo $USER






                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Nov 21 at 19:39

























                          answered Nov 21 at 19:24









                          ajcg

                          509310




                          509310






























                               

                              draft saved


                              draft discarded



















































                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f583731%2fsamba-keeps-warning-session-closed-for-user-nobody-why%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

                              Category:香港粉麵

                              List *all* the tuples!

                              Channel [V]