which-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

which failed if user has lots of groups


From: Dmitry Bakshaev
Subject: which failed if user has lots of groups
Date: Thu, 19 Mar 2015 14:31:59 +0400

$ 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!

Attachment: sysconf.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]