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.

BACKGROUND

Trevor logs into his account on ssh://foobar.university.edu as one of the developers on the box, and he gets the message:

 id: cannot find name for group ID 131

Trevor then checks this out using

 vim /etc/group

PROBLEM

Trevor discovers that there is no 131 anywhere in the /etc/group file.

Trevor then runs id ...

 > id trevor
 uid=4460(trevor) gid=131 groups=48(foobar),51(doobar),131

To discover his primary group apparently does not have a name attached to it.

QUESTIONS

  • What likely happened to cause this circumstance on the foobar.university.edu box ?
  • Suppose trevor wants to fix this (e.g., by just creating a "trevor" group that maps to GID 131) what is the best way to do this without potentially breaking anything else on the server ?
share|improve this question

1 Answer 1

up vote 5 down vote accepted

What likely happened is that the UID and GID are provided to the server via LDAP. If the /etc/group file doesn't contain the translation for the GID, then the server administrators likely just failed to update the group definitions. What can you do? Not much. The user id is controlled by the administrator. (Now if you happen to have ROOT privileges, you can add the group into /etc/group. You should also check to see if any other user accounts are using the same group, and if they are, name the group appropriately).

share|improve this answer
2  
Thanks for the reply. Additional note: If you do have sufficient privileges; adding to group file can be done via groupadd --gid 131 foobargroup –  dreftymac Nov 6 '12 at 1:54

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.