gksu silently fails in case of hostname issue
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gksu (Ubuntu) |
New
|
Medium
|
Unassigned |
Bug Description
I just updated to dapper. I encountered an issue after the reboot: I wasn't able to check apply my updates anymore.
I identified the issues as sudo not working, and the GUI wrapper (gksu?) silently failing.
The reason?
Some months ago I had renamed my desktop. Somehow this operation didn't go right, but my desktop kept working correctly. The upgrade revealed the issue and I've had to fire a Live CD, mount my LVM partitions and fix /etc by hand.
How to reproduce my issue:
in one shell
$ sudo -s
# echo newname >> /etc/hostname
# hostname newname
in the other:
$ sudo ls
sudo: unable to lookup newname via gethostbyname()
$
Now try to make an operation that requires adminstrative rights in the GUI, the window title "Grant Administrative rights" appear in the Gnome panel, but the window itself never appears.
I am not sure why my broken setup worked before, and if that special issue should be dealt with. But something should be done to catch the issue correctly and display a dialog.
If my configuration issue is common (but I doubt), it should be detected somehow.
Don't forget to revert your /etc changes :)
MIght be a dup of Bug #32906