setgid to AD group

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 an ?Ubuntu 17.10 server that has been joined to an Azure AD domain using these instructions



Whenever a user's home folder is created I would like to set the group ID to that of a specifc AD group.



My objective: Any AD user can authenticate and have a home directory created. Any user that's part of the AD group "supervisors" can authenticate and see the data in everyone's /home directory.



setgid looks like the right way to go, but I can't find out how to reference AD groups. Searches all show solutions using SAMBA but I'm not using SAMBA shares.



-- Edit --
Further noodling shows that when a user's home directory is created by PAM it sets the group to "domain users". This a step in the right direction.



Anyone know how to change the default group that PAM users when the home directory is created?



Would my best bet be to run a cron job that periodically changes the GID?










share|improve this question



























    up vote
    0
    down vote

    favorite












    I have an ?Ubuntu 17.10 server that has been joined to an Azure AD domain using these instructions



    Whenever a user's home folder is created I would like to set the group ID to that of a specifc AD group.



    My objective: Any AD user can authenticate and have a home directory created. Any user that's part of the AD group "supervisors" can authenticate and see the data in everyone's /home directory.



    setgid looks like the right way to go, but I can't find out how to reference AD groups. Searches all show solutions using SAMBA but I'm not using SAMBA shares.



    -- Edit --
    Further noodling shows that when a user's home directory is created by PAM it sets the group to "domain users". This a step in the right direction.



    Anyone know how to change the default group that PAM users when the home directory is created?



    Would my best bet be to run a cron job that periodically changes the GID?










    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have an ?Ubuntu 17.10 server that has been joined to an Azure AD domain using these instructions



      Whenever a user's home folder is created I would like to set the group ID to that of a specifc AD group.



      My objective: Any AD user can authenticate and have a home directory created. Any user that's part of the AD group "supervisors" can authenticate and see the data in everyone's /home directory.



      setgid looks like the right way to go, but I can't find out how to reference AD groups. Searches all show solutions using SAMBA but I'm not using SAMBA shares.



      -- Edit --
      Further noodling shows that when a user's home directory is created by PAM it sets the group to "domain users". This a step in the right direction.



      Anyone know how to change the default group that PAM users when the home directory is created?



      Would my best bet be to run a cron job that periodically changes the GID?










      share|improve this question















      I have an ?Ubuntu 17.10 server that has been joined to an Azure AD domain using these instructions



      Whenever a user's home folder is created I would like to set the group ID to that of a specifc AD group.



      My objective: Any AD user can authenticate and have a home directory created. Any user that's part of the AD group "supervisors" can authenticate and see the data in everyone's /home directory.



      setgid looks like the right way to go, but I can't find out how to reference AD groups. Searches all show solutions using SAMBA but I'm not using SAMBA shares.



      -- Edit --
      Further noodling shows that when a user's home directory is created by PAM it sets the group to "domain users". This a step in the right direction.



      Anyone know how to change the default group that PAM users when the home directory is created?



      Would my best bet be to run a cron job that periodically changes the GID?







      permissions active-directory kerberos






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 10 at 7:10

























      asked Feb 10 at 5:54









      Gavin Hill

      12




      12

























          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%2f1004762%2fsetgid-to-ad-group%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%2f1004762%2fsetgid-to-ad-group%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          Which professions warranted travel in Medieval times?

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

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