bashrc running slowly due to $(groups)
Bug #66525 reported by
Liam Bedford
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash (Ubuntu) |
Invalid
|
Undecided
|
Matthias Klose |
Bug Description
Binary package hint: bash
The following piece of code in /etc/bash.bashrc:
# sudo hint
if [ ! -e $HOME/.
case " $(groups) " in *\ admin\ *)
if [ -x /usr/bin/sudo ]; then
cat <<-EOF
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
EOF
fi
esac
fi
runs groups, which can run extremely slowly, depending on the
infrastructure in place (ldap + nscd or whatever).
To post a comment you must log in.
rejecting
- it is a config file, so you can modify it.
- it is only called until the first sucessful sudo.