Directory owned by a group that doesn't exist? [duplicate]

Clash Royale CLAN TAG#URR8PPP
This question already has an answer here:
Group ID 501 cannot be found
2 answers
I'm witnessing a a directory which has for group owner "1002" ...
However I do not have any group with such ID (verified with getent group | grep 1002 ).
Even history | grep groupadd gave nothing.
Where could that be coming from.
Any '100x' group ID is a user ID if I'm right no ?
directory group gid
marked as duplicate by JdeBP, Thomas, Jeff Schaller, Mr Shunz, elbarna Jan 28 at 10:47
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
This question already has an answer here:
Group ID 501 cannot be found
2 answers
I'm witnessing a a directory which has for group owner "1002" ...
However I do not have any group with such ID (verified with getent group | grep 1002 ).
Even history | grep groupadd gave nothing.
Where could that be coming from.
Any '100x' group ID is a user ID if I'm right no ?
directory group gid
marked as duplicate by JdeBP, Thomas, Jeff Schaller, Mr Shunz, elbarna Jan 28 at 10:47
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
This question already has an answer here:
Group ID 501 cannot be found
2 answers
I'm witnessing a a directory which has for group owner "1002" ...
However I do not have any group with such ID (verified with getent group | grep 1002 ).
Even history | grep groupadd gave nothing.
Where could that be coming from.
Any '100x' group ID is a user ID if I'm right no ?
directory group gid
This question already has an answer here:
Group ID 501 cannot be found
2 answers
I'm witnessing a a directory which has for group owner "1002" ...
However I do not have any group with such ID (verified with getent group | grep 1002 ).
Even history | grep groupadd gave nothing.
Where could that be coming from.
Any '100x' group ID is a user ID if I'm right no ?
This question already has an answer here:
Group ID 501 cannot be found
2 answers
directory group gid
directory group gid
edited Jan 27 at 15:19
Jeff Schaller
41.5k1056131
41.5k1056131
asked Jan 27 at 12:52
TorofTorof
254
254
marked as duplicate by JdeBP, Thomas, Jeff Schaller, Mr Shunz, elbarna Jan 28 at 10:47
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by JdeBP, Thomas, Jeff Schaller, Mr Shunz, elbarna Jan 28 at 10:47
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Group IDs and User IDs are independent. The same number may be used for user "foo" and group "bar".
Some Linux distributions by default create a new group "foo" when you create user "foo", both having the same numerical ID. (This kills the very notion of group, IMHO.)
ls by default shows the group name, but the filesystem stores the numerical group ID. If a group is removed, files belonging to it are not, then ls shows the numerical ID.
So the situation you observe may come from, e.g.:
- creating a user who gets affected number 1002 and implying creation of group 1002, then removing this user (assuming the distribution tools then remove the associated group)
- syncing a file from another computer where its owning group has number 1002
1
Don't forget extracting files from an archive withpax -p eand the like. There are questions on this site about that very thing.
– JdeBP
Jan 27 at 13:11
amazing, I think that was it !! I created a user whom I then removed ! Thanks
– Torof
Jan 27 at 13:40
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Group IDs and User IDs are independent. The same number may be used for user "foo" and group "bar".
Some Linux distributions by default create a new group "foo" when you create user "foo", both having the same numerical ID. (This kills the very notion of group, IMHO.)
ls by default shows the group name, but the filesystem stores the numerical group ID. If a group is removed, files belonging to it are not, then ls shows the numerical ID.
So the situation you observe may come from, e.g.:
- creating a user who gets affected number 1002 and implying creation of group 1002, then removing this user (assuming the distribution tools then remove the associated group)
- syncing a file from another computer where its owning group has number 1002
1
Don't forget extracting files from an archive withpax -p eand the like. There are questions on this site about that very thing.
– JdeBP
Jan 27 at 13:11
amazing, I think that was it !! I created a user whom I then removed ! Thanks
– Torof
Jan 27 at 13:40
add a comment |
Group IDs and User IDs are independent. The same number may be used for user "foo" and group "bar".
Some Linux distributions by default create a new group "foo" when you create user "foo", both having the same numerical ID. (This kills the very notion of group, IMHO.)
ls by default shows the group name, but the filesystem stores the numerical group ID. If a group is removed, files belonging to it are not, then ls shows the numerical ID.
So the situation you observe may come from, e.g.:
- creating a user who gets affected number 1002 and implying creation of group 1002, then removing this user (assuming the distribution tools then remove the associated group)
- syncing a file from another computer where its owning group has number 1002
1
Don't forget extracting files from an archive withpax -p eand the like. There are questions on this site about that very thing.
– JdeBP
Jan 27 at 13:11
amazing, I think that was it !! I created a user whom I then removed ! Thanks
– Torof
Jan 27 at 13:40
add a comment |
Group IDs and User IDs are independent. The same number may be used for user "foo" and group "bar".
Some Linux distributions by default create a new group "foo" when you create user "foo", both having the same numerical ID. (This kills the very notion of group, IMHO.)
ls by default shows the group name, but the filesystem stores the numerical group ID. If a group is removed, files belonging to it are not, then ls shows the numerical ID.
So the situation you observe may come from, e.g.:
- creating a user who gets affected number 1002 and implying creation of group 1002, then removing this user (assuming the distribution tools then remove the associated group)
- syncing a file from another computer where its owning group has number 1002
Group IDs and User IDs are independent. The same number may be used for user "foo" and group "bar".
Some Linux distributions by default create a new group "foo" when you create user "foo", both having the same numerical ID. (This kills the very notion of group, IMHO.)
ls by default shows the group name, but the filesystem stores the numerical group ID. If a group is removed, files belonging to it are not, then ls shows the numerical ID.
So the situation you observe may come from, e.g.:
- creating a user who gets affected number 1002 and implying creation of group 1002, then removing this user (assuming the distribution tools then remove the associated group)
- syncing a file from another computer where its owning group has number 1002
answered Jan 27 at 13:03
L. LevrelL. Levrel
1,224415
1,224415
1
Don't forget extracting files from an archive withpax -p eand the like. There are questions on this site about that very thing.
– JdeBP
Jan 27 at 13:11
amazing, I think that was it !! I created a user whom I then removed ! Thanks
– Torof
Jan 27 at 13:40
add a comment |
1
Don't forget extracting files from an archive withpax -p eand the like. There are questions on this site about that very thing.
– JdeBP
Jan 27 at 13:11
amazing, I think that was it !! I created a user whom I then removed ! Thanks
– Torof
Jan 27 at 13:40
1
1
Don't forget extracting files from an archive with
pax -p e and the like. There are questions on this site about that very thing.– JdeBP
Jan 27 at 13:11
Don't forget extracting files from an archive with
pax -p e and the like. There are questions on this site about that very thing.– JdeBP
Jan 27 at 13:11
amazing, I think that was it !! I created a user whom I then removed ! Thanks
– Torof
Jan 27 at 13:40
amazing, I think that was it !! I created a user whom I then removed ! Thanks
– Torof
Jan 27 at 13:40
add a comment |