I encountered a strange problem today while installing the "passenger" web server on a centos system.
The server was failing to set the GID for a directory that it created, even though it was trying to use the group of the current user. The error is below:
Cannot change the directory '/tmp/passenger.spawn.XXXX6rOcmE/envdump' its UID to 1005 and GID to 100: Operation not permitted (errno=1)
After some digging, I discovered that the problem was that there were two groups with the same name, but different GIDs, as seen in the command below:
$ getent group | grep users users:x:100: users:*:1001:asdf,sdafsdf,zzzz
After renaming one of the two groups, the problem was fixed.
So my question is this: according to specifications, is it valid for two groups on the same system to have the same name, or is it not?
The reason is that if it is valid, I plan to submit a bug report for passenger since it couldn't handle that situation, if it is not valid then a bug should be reported to centos.