Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I was trying to solve Virtualbox's USB problem by adding my username to the vboxusers group, but when I tried to see if the group existed by using groupmod TAB TAB all I got was what appears to be my home directory.

Why is that? What can I do to see the groups on my system?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

If you are using bash and the default bash-completion rules do not autocomplete groups for these commands, you can use something like the following (either by running once on the terminal or permenently by including it in ~/.bash_profile or ~/.bashrc.

complete -g groupmod groupdel newgrp

Another way to see all of the groups is to look in the /etc/group file. Also, the "groups" command will allow you to see which groups you are a member of (and which groups other users are members of).

share|improve this answer

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.