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

Clash 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?
centos
add a comment |Â
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?
centos
add a comment |Â
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?
centos
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?
centos
edited May 10 at 18:25
asked May 9 at 20:36
Khanna111
1034
1034
add a comment |Â
add a comment |Â
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.
If you could put this in the answer instead of the comment, please.
â Khanna111
May 9 at 22:58
add a comment |Â
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.
Yes, I mistakenly typed uid instead of gid as a comment earlier.
â Khanna111
May 10 at 18:23
add a comment |Â
up vote
1
down vote
There are not necessarily a user and group of the same name although that often happens (root, nobody).
add a comment |Â
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.
If you could put this in the answer instead of the comment, please.
â Khanna111
May 9 at 22:58
add a comment |Â
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.
If you could put this in the answer instead of the comment, please.
â Khanna111
May 9 at 22:58
add a comment |Â
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.
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.
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
add a comment |Â
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
add a comment |Â
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.
Yes, I mistakenly typed uid instead of gid as a comment earlier.
â Khanna111
May 10 at 18:23
add a comment |Â
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.
Yes, I mistakenly typed uid instead of gid as a comment earlier.
â Khanna111
May 10 at 18:23
add a comment |Â
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.
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.
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
add a comment |Â
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
add a comment |Â
up vote
1
down vote
There are not necessarily a user and group of the same name although that often happens (root, nobody).
add a comment |Â
up vote
1
down vote
There are not necessarily a user and group of the same name although that often happens (root, nobody).
add a comment |Â
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).
There are not necessarily a user and group of the same name although that often happens (root, nobody).
answered May 9 at 20:56
Hauke Laging
53.2k1282130
53.2k1282130
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password