Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've recently uninstalled virtualbox and since then, everytime I open a terminal I get the following:

groups: cannot find name for group ID 125

The output of /etc/group is here:

I didn't want to paste the full output here, it's a bit long.

Strangely enough, there is no group 125 but as far as I remember that was assigned to the vboxusers group.

Google has not been helpful at all.

I see a similar question here:

Cannot find name for group ID 127

But I don't know what he's talking about here:

But I've found it in the group- list

Entry vboxusers:x:127:peter

Can anyone point me the right direction?

share|improve this question
Note: The pastebin link here is no longer existent and therefore this question is incomplete... – Thomas W. Sep 3 '13 at 21:44
up vote 3 down vote accepted

You could use sudo delgroup vboxusers to completely remove that group, if the uninstallation of Virtualbox failed to do that. Then enter id in the terminal and your uid, gid, and the groups you belong to will be listed, and vboxusers shouldn't be there.

If this does not work you could simply reinstall Virtualbox with sudo apt-get install --reinstall <virtualbox pkg names> and then you might be able to remove the package cleanly with sudo apt-get purge <virtualbox version> (which would remove any configuration files) and then you could use sudo apt-get autoremove to remove any other files left by Virtualbox. Then you could try my first suggestion again.

Lastly, if these options are unsuccessful, but installing Virtualbox does show that group 125 is virtualbox, you could remove the Virtualbox users group (as detailed in my first suggestion with sudo delgroup vboxusers), before you uninstall Virtualbox. This may work as Virtualbox doesn't seem to be uninstalling correctly and seems to be leaving a partial group that can't easily be removed after uninstallation as it doesn't show up in /etc/group.

It also should be said that you need to logout and login again for any changes to users and groups to take effect.

share|improve this answer
I tried all solutions mentioned in this post but id 125 is still there: uid=1000(michael) gid=1000(michael) groups=1000(michael),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),109(lpadmin),‌​124(sambashare),125 - when I reinstall virtualbox, 125 does show that it's vboxusers. – darknomel Jul 26 '12 at 12:08
Well, this is what I usually do when I get an error about a missing group; I'll see if I can think of something else to try. – user76204 Jul 26 '12 at 12:13
Thanks @Mik - I've run out of ideas. – darknomel Jul 26 '12 at 12:16
I've edited my post with another suggestion; it might be helpful. – user76204 Jul 26 '12 at 12:27
Same thing. 125 still just sits in my id :( – darknomel Jul 26 '12 at 12:58

I had the same issue. The problem was actually prety simple. In my case, someone had changed the priviledges of /etc/group, and had removed all rwx from me. So the system saw I did not have the priviledge to access the name of the group I nbelonged, so it printed this message. Maybe something similar migh be happening in your case.

share|improve this answer

I had the same problem after uninstalling Chrome Remote Desktop for Linux, except in my case it was gid 1003:

groups: cannot find name for group ID 1003
paul@Chameleon:~$ groups
paul adm cdrom sudo audio dip video plugdev lpadmin pulse sambashare vboxusers groups: cannot find name for group ID 1003

What resolved the issue for me was rewriting the user account's groups using the usermod command:

sudo usermod -G paul,adm,cdrom,sudo,audio,dip,video,plugdev,lpadmin,sambashare,vboxusers,pulse  paul

After issuing that command, I verified it resolved the issue by switching to VT1 (Ctrl+Alt+F1), logged in, and observed the error was no longer displayed.

share|improve this answer

I had the same problem, and the reason was that I added user to a group docker manually with

sudo usermod -a -G docker hassan

and later when I uninstalled, I removed the group with

sudo groupdel docker

so after that, I used to get the following:

$ groups
hassan adm cdrom sudo dip plugdev lpadmin sambashare libvirtd
groups: cannot find name for group ID 999

So to fix this I simply logged out and logged back in and that was it. You can test simply by doing AltCtrlF2 and login in. Then give the groups command and you will not see the same error message again.

share|improve this answer

Check /etc/nscd.conf make sure that the following line is there:

 enable-cache            group           yes
share|improve this answer

Your Answer


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.