$ id|sed -e 's/,/ /g'|wc -w
515
~500 groups for one user (from ldap and other)
$ id|grep -o vboxusers
vboxusers
user is member of vboxusers group
$ which VirtualBox
which: no VirtualBox in (/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.7.3:/usr/lib64/subversion/bin)
$ ls -la /usr/bin/VirtualBox
lrwxrwxrwx 1 root root 26 июн 3 2014 /usr/bin/VirtualBox -> /usr/lib64/virtualbox/VBox
$ ls -la /usr/lib64/virtualbox/VBox
-rwxr-x--- 1 root vboxusers 2931 июн 3 2014 /usr/lib64/virtualbox/VBox
getmaxgroups() in bash.c have
#if defined (HAVE_SYSCONF) && defined (_SC_NGROUPS_MAX)
but is not not checked and not configured by 'configure'
attached patch fix this problem:
$ which VirtualBox
/usr/bin/VirtualBox
thanx!