Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

A file in a directory has a Group ID "501"
After checking /etc/group, Group ID "501" was not found
how is that possible ?

share|improve this question
add comment

2 Answers 2

Perhaps a group with that ID existed at some point but was since deleted?

It's also entirely possible to, as root, chgrp a file or directory to a group ID that doesn't match any corresponding group.

share|improve this answer
add comment

Did the file originate on a different machine? You often see this happening, for example, with unpacked tar archives that were created elsewhere. The user/group pair existed on the remote site, but possibly aren't defined locally. Therefore, utilities that try to resolve user/group numbers to names fail, and fall back to displaying the numerical ID instead.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.