uid = 10 for wheel group but do not see that id in /etc/passwd

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











up vote
0
down vote

favorite












CentOS 7:



$ cat /etc/group 

wheel:x:10:a,b


However I do not see any user with gid=10 when I do



cat /etc/passwd


Is this some special id?







share|improve this question

























    up vote
    0
    down vote

    favorite












    CentOS 7:



    $ cat /etc/group 

    wheel:x:10:a,b


    However I do not see any user with gid=10 when I do



    cat /etc/passwd


    Is this some special id?







    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      CentOS 7:



      $ cat /etc/group 

      wheel:x:10:a,b


      However I do not see any user with gid=10 when I do



      cat /etc/passwd


      Is this some special id?







      share|improve this question













      CentOS 7:



      $ cat /etc/group 

      wheel:x:10:a,b


      However I do not see any user with gid=10 when I do



      cat /etc/passwd


      Is this some special id?









      share|improve this question












      share|improve this question




      share|improve this question








      edited May 10 at 18:25
























      asked May 9 at 20:36









      Khanna111

      1034




      1034




















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          3
          down vote



          accepted










          This is telling you that users a and b are members of the wheel group.



          These are secondary memberships; the primary group is listed in /etc/passwd as part of the user record.



          In this particular situation, where wheel is a group that confers special treatment, it's unlikely there will be any user with it as their primary group. So you shouldn't expect to find group 10 in /etc/passwd.






          share|improve this answer























          • If you could put this in the answer instead of the comment, please.
            – Khanna111
            May 9 at 22:58

















          up vote
          2
          down vote














          uid = 10 for wheel group




          Incorrect. That number 10 is the group ID of the wheel group. It is not a user ID at all. There's no reason to think that a user ID of 10 is relevant to that record in the groups table. Certainly the number 10 in the group ID field does not indicate that. There is no mandatory correspondence between user IDs and group IDs. Groups are linked to users by their account names, as you can see, and by the primary group ID in the password table.






          share|improve this answer





















          • Yes, I mistakenly typed uid instead of gid as a comment earlier.
            – Khanna111
            May 10 at 18:23

















          up vote
          1
          down vote













          There are not necessarily a user and group of the same name although that often happens (root, nobody).






          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%2f442859%2fuid-10-for-wheel-group-but-do-not-see-that-id-in-etc-passwd%23new-answer', 'question_page');

            );

            Post as a guest






























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            3
            down vote



            accepted










            This is telling you that users a and b are members of the wheel group.



            These are secondary memberships; the primary group is listed in /etc/passwd as part of the user record.



            In this particular situation, where wheel is a group that confers special treatment, it's unlikely there will be any user with it as their primary group. So you shouldn't expect to find group 10 in /etc/passwd.






            share|improve this answer























            • If you could put this in the answer instead of the comment, please.
              – Khanna111
              May 9 at 22:58














            up vote
            3
            down vote



            accepted










            This is telling you that users a and b are members of the wheel group.



            These are secondary memberships; the primary group is listed in /etc/passwd as part of the user record.



            In this particular situation, where wheel is a group that confers special treatment, it's unlikely there will be any user with it as their primary group. So you shouldn't expect to find group 10 in /etc/passwd.






            share|improve this answer























            • If you could put this in the answer instead of the comment, please.
              – Khanna111
              May 9 at 22:58












            up vote
            3
            down vote



            accepted







            up vote
            3
            down vote



            accepted






            This is telling you that users a and b are members of the wheel group.



            These are secondary memberships; the primary group is listed in /etc/passwd as part of the user record.



            In this particular situation, where wheel is a group that confers special treatment, it's unlikely there will be any user with it as their primary group. So you shouldn't expect to find group 10 in /etc/passwd.






            share|improve this answer















            This is telling you that users a and b are members of the wheel group.



            These are secondary memberships; the primary group is listed in /etc/passwd as part of the user record.



            In this particular situation, where wheel is a group that confers special treatment, it's unlikely there will be any user with it as their primary group. So you shouldn't expect to find group 10 in /etc/passwd.







            share|improve this answer















            share|improve this answer



            share|improve this answer








            edited May 9 at 23:18


























            answered May 9 at 20:41









            roaima

            39.4k544105




            39.4k544105











            • If you could put this in the answer instead of the comment, please.
              – Khanna111
              May 9 at 22:58
















            • If you could put this in the answer instead of the comment, please.
              – Khanna111
              May 9 at 22:58















            If you could put this in the answer instead of the comment, please.
            – Khanna111
            May 9 at 22:58




            If you could put this in the answer instead of the comment, please.
            – Khanna111
            May 9 at 22:58












            up vote
            2
            down vote














            uid = 10 for wheel group




            Incorrect. That number 10 is the group ID of the wheel group. It is not a user ID at all. There's no reason to think that a user ID of 10 is relevant to that record in the groups table. Certainly the number 10 in the group ID field does not indicate that. There is no mandatory correspondence between user IDs and group IDs. Groups are linked to users by their account names, as you can see, and by the primary group ID in the password table.






            share|improve this answer





















            • Yes, I mistakenly typed uid instead of gid as a comment earlier.
              – Khanna111
              May 10 at 18:23














            up vote
            2
            down vote














            uid = 10 for wheel group




            Incorrect. That number 10 is the group ID of the wheel group. It is not a user ID at all. There's no reason to think that a user ID of 10 is relevant to that record in the groups table. Certainly the number 10 in the group ID field does not indicate that. There is no mandatory correspondence between user IDs and group IDs. Groups are linked to users by their account names, as you can see, and by the primary group ID in the password table.






            share|improve this answer





















            • Yes, I mistakenly typed uid instead of gid as a comment earlier.
              – Khanna111
              May 10 at 18:23












            up vote
            2
            down vote










            up vote
            2
            down vote










            uid = 10 for wheel group




            Incorrect. That number 10 is the group ID of the wheel group. It is not a user ID at all. There's no reason to think that a user ID of 10 is relevant to that record in the groups table. Certainly the number 10 in the group ID field does not indicate that. There is no mandatory correspondence between user IDs and group IDs. Groups are linked to users by their account names, as you can see, and by the primary group ID in the password table.






            share|improve this answer














            uid = 10 for wheel group




            Incorrect. That number 10 is the group ID of the wheel group. It is not a user ID at all. There's no reason to think that a user ID of 10 is relevant to that record in the groups table. Certainly the number 10 in the group ID field does not indicate that. There is no mandatory correspondence between user IDs and group IDs. Groups are linked to users by their account names, as you can see, and by the primary group ID in the password table.







            share|improve this answer













            share|improve this answer



            share|improve this answer











            answered May 10 at 0:00









            JdeBP

            28.1k459133




            28.1k459133











            • Yes, I mistakenly typed uid instead of gid as a comment earlier.
              – Khanna111
              May 10 at 18:23
















            • Yes, I mistakenly typed uid instead of gid as a comment earlier.
              – Khanna111
              May 10 at 18:23















            Yes, I mistakenly typed uid instead of gid as a comment earlier.
            – Khanna111
            May 10 at 18:23




            Yes, I mistakenly typed uid instead of gid as a comment earlier.
            – Khanna111
            May 10 at 18:23










            up vote
            1
            down vote













            There are not necessarily a user and group of the same name although that often happens (root, nobody).






            share|improve this answer

























              up vote
              1
              down vote













              There are not necessarily a user and group of the same name although that often happens (root, nobody).






              share|improve this answer























                up vote
                1
                down vote










                up vote
                1
                down vote









                There are not necessarily a user and group of the same name although that often happens (root, nobody).






                share|improve this answer













                There are not necessarily a user and group of the same name although that often happens (root, nobody).







                share|improve this answer













                share|improve this answer



                share|improve this answer











                answered May 9 at 20:56









                Hauke Laging

                53.2k1282130




                53.2k1282130






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f442859%2fuid-10-for-wheel-group-but-do-not-see-that-id-in-etc-passwd%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    Peggy Mitchell

                    Palaiologos

                    The Forum (Inglewood, California)