bashrc running slowly due to $(groups)

Bug #66525 reported by Liam Bedford
2
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/.sudo_as_admin_successful ]; then
    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).

Revision history for this message
Matthias Klose (doko) wrote :

rejecting
 - it is a config file, so you can modify it.
 - it is only called until the first sucessful sudo.

Changed in bash:
assignee: nobody → doko
status: Unconfirmed → Rejected
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.