~/.sudo_as_admin_successful causes NFS hang
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sudo (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: sudo
Accessing the file ~/.sudo_
when an NFS server is down or unreachable.
Before running the requested command, sudo (1.7.2p1-
touches the file .sudo_as_
directory.
In the failure scenario, your home directory is an NFS mount, the
network has gone down, and you need root access to fix it. Alas, your
sudo command hangs, because it is trying to access a network file, and
thus you cannot fix the network.
Putting this flag file in /var/lib/
would be safer, because /var/lib is more likely to be on a local
file-system.
Please consider whether this Ubuntu addition of touching a file is
justified at all. It adds to code complexity. (There has already
been at least one bug filed (and fixed) against it.) It adds to the
Ubuntu patch burden. And it provides only the modest benefit of
allowing /etc/bash.bashrc to inform some people when they log in that
they can use sudo to be root.
We sometimes need to use sudo in emergencies, when things aren't
working well. Thus, sudo should be simple and streamlined, so we can
count on it working when other things are broken. Please, be very
reluctant to add new code to sudo.
Status changed to 'Confirmed' because the bug affects multiple users.