What is the “group vector” of a user?

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











up vote
0
down vote

favorite












From man sudo




-P, --preserve-groups



Preserve the invoking user's group vector unaltered. By default,
the sudoers policy will initialize the group vector to the list of
groups the target user is a member of. The real and effective group
IDs, however, are still set to match the target user.




What is the "group vector" of a user? I couldn't find its definition by Google. Thanks.







share|improve this question

























    up vote
    0
    down vote

    favorite












    From man sudo




    -P, --preserve-groups



    Preserve the invoking user's group vector unaltered. By default,
    the sudoers policy will initialize the group vector to the list of
    groups the target user is a member of. The real and effective group
    IDs, however, are still set to match the target user.




    What is the "group vector" of a user? I couldn't find its definition by Google. Thanks.







    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      From man sudo




      -P, --preserve-groups



      Preserve the invoking user's group vector unaltered. By default,
      the sudoers policy will initialize the group vector to the list of
      groups the target user is a member of. The real and effective group
      IDs, however, are still set to match the target user.




      What is the "group vector" of a user? I couldn't find its definition by Google. Thanks.







      share|improve this question













      From man sudo




      -P, --preserve-groups



      Preserve the invoking user's group vector unaltered. By default,
      the sudoers policy will initialize the group vector to the list of
      groups the target user is a member of. The real and effective group
      IDs, however, are still set to match the target user.




      What is the "group vector" of a user? I couldn't find its definition by Google. Thanks.









      share|improve this question












      share|improve this question




      share|improve this question








      edited Apr 27 at 10:40









      Jeff Schaller

      31.1k846105




      31.1k846105









      asked Apr 27 at 2:23









      Tim

      22.6k63224401




      22.6k63224401




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          Group vector is a term that refers to the specific set of groups to which a user has membership.



          Basically, whatever commands that are run using sudo will be run with the effective user and group IDs of the target user.






          share|improve this answer





















          • Thanks. What does "vector" mean?
            – Tim
            Apr 27 at 2:50










          • vector is a fancy word for collection or list.
            – Miguel Mota
            Apr 27 at 2:52










          • Is there really a collection or list such as a bit array somewhere for the groups of a user?
            – Tim
            Apr 27 at 2:54











          • /etc/group contains all group ids (gids) and /etc/passwd contains the user gids
            – Miguel Mota
            Apr 27 at 3:04






          • 1




            passwd contains the primary groupid for each user (which was the only one in olden days); group contains for each group (and groupid) all usernames that have that group as a secondary group, so this information must be 'reversed' to determine the secondary group(id)s for a given user.
            – dave_thompson_085
            Apr 27 at 6:06










          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%2f440315%2fwhat-is-the-group-vector-of-a-user%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
          2
          down vote



          accepted










          Group vector is a term that refers to the specific set of groups to which a user has membership.



          Basically, whatever commands that are run using sudo will be run with the effective user and group IDs of the target user.






          share|improve this answer





















          • Thanks. What does "vector" mean?
            – Tim
            Apr 27 at 2:50










          • vector is a fancy word for collection or list.
            – Miguel Mota
            Apr 27 at 2:52










          • Is there really a collection or list such as a bit array somewhere for the groups of a user?
            – Tim
            Apr 27 at 2:54











          • /etc/group contains all group ids (gids) and /etc/passwd contains the user gids
            – Miguel Mota
            Apr 27 at 3:04






          • 1




            passwd contains the primary groupid for each user (which was the only one in olden days); group contains for each group (and groupid) all usernames that have that group as a secondary group, so this information must be 'reversed' to determine the secondary group(id)s for a given user.
            – dave_thompson_085
            Apr 27 at 6:06














          up vote
          2
          down vote



          accepted










          Group vector is a term that refers to the specific set of groups to which a user has membership.



          Basically, whatever commands that are run using sudo will be run with the effective user and group IDs of the target user.






          share|improve this answer





















          • Thanks. What does "vector" mean?
            – Tim
            Apr 27 at 2:50










          • vector is a fancy word for collection or list.
            – Miguel Mota
            Apr 27 at 2:52










          • Is there really a collection or list such as a bit array somewhere for the groups of a user?
            – Tim
            Apr 27 at 2:54











          • /etc/group contains all group ids (gids) and /etc/passwd contains the user gids
            – Miguel Mota
            Apr 27 at 3:04






          • 1




            passwd contains the primary groupid for each user (which was the only one in olden days); group contains for each group (and groupid) all usernames that have that group as a secondary group, so this information must be 'reversed' to determine the secondary group(id)s for a given user.
            – dave_thompson_085
            Apr 27 at 6:06












          up vote
          2
          down vote



          accepted







          up vote
          2
          down vote



          accepted






          Group vector is a term that refers to the specific set of groups to which a user has membership.



          Basically, whatever commands that are run using sudo will be run with the effective user and group IDs of the target user.






          share|improve this answer













          Group vector is a term that refers to the specific set of groups to which a user has membership.



          Basically, whatever commands that are run using sudo will be run with the effective user and group IDs of the target user.







          share|improve this answer













          share|improve this answer



          share|improve this answer











          answered Apr 27 at 2:42









          Miguel Mota

          1363




          1363











          • Thanks. What does "vector" mean?
            – Tim
            Apr 27 at 2:50










          • vector is a fancy word for collection or list.
            – Miguel Mota
            Apr 27 at 2:52










          • Is there really a collection or list such as a bit array somewhere for the groups of a user?
            – Tim
            Apr 27 at 2:54











          • /etc/group contains all group ids (gids) and /etc/passwd contains the user gids
            – Miguel Mota
            Apr 27 at 3:04






          • 1




            passwd contains the primary groupid for each user (which was the only one in olden days); group contains for each group (and groupid) all usernames that have that group as a secondary group, so this information must be 'reversed' to determine the secondary group(id)s for a given user.
            – dave_thompson_085
            Apr 27 at 6:06
















          • Thanks. What does "vector" mean?
            – Tim
            Apr 27 at 2:50










          • vector is a fancy word for collection or list.
            – Miguel Mota
            Apr 27 at 2:52










          • Is there really a collection or list such as a bit array somewhere for the groups of a user?
            – Tim
            Apr 27 at 2:54











          • /etc/group contains all group ids (gids) and /etc/passwd contains the user gids
            – Miguel Mota
            Apr 27 at 3:04






          • 1




            passwd contains the primary groupid for each user (which was the only one in olden days); group contains for each group (and groupid) all usernames that have that group as a secondary group, so this information must be 'reversed' to determine the secondary group(id)s for a given user.
            – dave_thompson_085
            Apr 27 at 6:06















          Thanks. What does "vector" mean?
          – Tim
          Apr 27 at 2:50




          Thanks. What does "vector" mean?
          – Tim
          Apr 27 at 2:50












          vector is a fancy word for collection or list.
          – Miguel Mota
          Apr 27 at 2:52




          vector is a fancy word for collection or list.
          – Miguel Mota
          Apr 27 at 2:52












          Is there really a collection or list such as a bit array somewhere for the groups of a user?
          – Tim
          Apr 27 at 2:54





          Is there really a collection or list such as a bit array somewhere for the groups of a user?
          – Tim
          Apr 27 at 2:54













          /etc/group contains all group ids (gids) and /etc/passwd contains the user gids
          – Miguel Mota
          Apr 27 at 3:04




          /etc/group contains all group ids (gids) and /etc/passwd contains the user gids
          – Miguel Mota
          Apr 27 at 3:04




          1




          1




          passwd contains the primary groupid for each user (which was the only one in olden days); group contains for each group (and groupid) all usernames that have that group as a secondary group, so this information must be 'reversed' to determine the secondary group(id)s for a given user.
          – dave_thompson_085
          Apr 27 at 6:06




          passwd contains the primary groupid for each user (which was the only one in olden days); group contains for each group (and groupid) all usernames that have that group as a secondary group, so this information must be 'reversed' to determine the secondary group(id)s for a given user.
          – dave_thompson_085
          Apr 27 at 6:06












           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f440315%2fwhat-is-the-group-vector-of-a-user%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?