gksu error reporting could be more friendly

Bug #9214 reported by David Allouche
44
Affects Status Importance Assigned to Milestone
gksu (Ubuntu)
Fix Released
Wishlist
Michael Vogt

Bug Description

Select "Root Terminal" in the GNOME menu.
Type an incorrect password in the gksudo dialog.

The displayed error message reads:
"Failed to run /usr/bin/x-terminal-emulator as user root:
 Child terminated with 1 status"

It should explain that the cause of the error is an incorrect password instead
of some internal error in x-terminal-emulator:
"Failed to run /usr/bin/x-terminal-emulator as user root:
 Incorrect password"

If possible, there should be a specific error message for the "Root Terminal"
because root has no password of itself by default:
"Failed to run a root terminal: incorrect password"

Revision history for this message
Matt Zimmerman (mdz) wrote :

*** Bug 9344 has been marked as a duplicate of this bug. ***

Revision history for this message
Matt Zimmerman (mdz) wrote :

*** Bug 8799 has been marked as a duplicate of this bug. ***

Revision history for this message
Matt Zimmerman (mdz) wrote :

*** Bug 9481 has been marked as a duplicate of this bug. ***

Revision history for this message
Matt Zimmerman (mdz) wrote :

*** Bug 10479 has been marked as a duplicate of this bug. ***

Revision history for this message
Sebastien Bacher (seb128) wrote :

do you still get the issue ? that seems to work fine here.

Revision history for this message
David Allouche (ddaa) wrote :

I'm still on warty, so I cannot comment yet.

I'm downloading a live hoary to do some testing in the next few days.

Revision history for this message
Corey Burger (corey.burger) wrote :

Here is a report Hoary install
All the various things I tested now reports "Failed to run $program as user
root. Bad password" but it takes at least 1-2 seconds to come back up with the
error message
2 minor things
-Synaptic still says /usr/bin/synaptic. My thought regarding this was to pull it
out of the .desktop file
-Still too much info for the error message. I would remove the notice about user
root so it would say "Failed to run $program as you entered the password wrong"
or something similar. Bad password is quite ambiguous (does that mean my
password is bad?)

Revision history for this message
Luis Villa (luis-villa) wrote :

*** Bug 10267 has been marked as a duplicate of this bug. ***

Revision history for this message
Luis Villa (luis-villa) wrote :

I'm still seeing this when I launch synaptic with 'gksudo /usr/sbin/synaptic'
from a panel launcher in hoary. It doesn't really impact anything (it happens
*after* I have used/closed synaptic) but it still happens.

[Note that there is something bizarre in your bugzilla, and as far as I can see,
I can't reopen the bug out of NEEDINFO without accepting it to myself.]

Revision history for this message
Dennis Kaarsemaker (dennis) wrote :

I no longer see this behaviour in Breezy, can anyone confirm/deny?

Revision history for this message
Michael Vogt (mvo) wrote :

I always get:
"Failed to run cmd as user root:
 Wrong password.
"
that looks like correct behaviour to me.

I close this bug now, please reopen if you disagree.

Revision history for this message
Jean Privat (privat) wrote :

I think we can keep this bug open. I explain why.

First point: launch

Current behavior:
You select in the menu a admin tool, for instance "User and Groups".
A dialog appears and ask : "Please enter you password to run users-admin", "OK",
"Cancel"

Expected behavior:
You select in the menu a admin tool, for instance "User and Groups".
A dialog appears and ask : "Please enter you password to run User and Groups",
"OK", "Cancel"

Second point: password error

Current behavior:
You type a wrong password (for instance ***** instead of *****), then click on OK.
The dialog is closed.
Nothing.
Nothing.
Nothing. (the computer is broken ?)
Nothing.
A error dialog appears and says "Failed to run users-admin" "Wrong password",
"Close"

Expected behavior:
You type a wrong password (for instance ***** instead of *****), then click on OK.
The dialog is not closed, a hourglass or a progressbas is displayed,
Wait.
Wait.
Wait.
Wait.
The dialog box is still not closed but now says "Failed to run User and Groups"
"Wrong password" "Retry your password" "OK" "Cancel"

Summary:
1 - use the application name instead of the program filename
2 - have a feedback when processing password
3 - propose the user to retry its password

Until these three points are not solved, I think gksu is not as friendly as he
ought to be. Therefore the bug should not be closed.

Revision history for this message
Michael Vogt (mvo) wrote :

Reopened on the request of Jean Privat.

Revision history for this message
Tormod Volden (tormodvolden) wrote : error message from gksu using gnome-app-install

This is Dapper, up to date. Entering wrong password in Applications->Add/Remove... gives the attached warning - pretty ugly.

gksu should have a --failed-password-message option or figure out something nicer to display.

Changed in gksu:
status: Unconfirmed → Confirmed
Revision history for this message
Tollef Fog Heen (tfheen) wrote :

Clearing Ubuntu 5.04 milestone as this clearly missed that one. Feel free to add a new one if you think that's appropriate.

Revision history for this message
Marco Rodrigues (gothicx) wrote :

kmos@bash:~$ gksudo gedit
GNOME_SUDO_PASS
sudo: 1 incorrect password attempt

This is working on gnome v2.18.1 at Feisty :-)

Changed in gksu:
status: Confirmed → Fix Released
Revision history for this message
Martin Pool (mbp) wrote :

mvo,

gksudo still gives a message to stderr if the wrong password is entered, but it exits with status 0. If gksudo is invoked by a program not run from a terminal (as it commonly is) then there is no visible indication of what has gone wrong.

For example feisty's update-manager runs gksudo to install the updates, but if I type the wrong password I'm just returned to the update list with no indication what happened.

Changed in gksu:
status: Fix Released → Confirmed
Revision history for this message
Martin Pool (mbp) wrote :

Personally I would say this is more than wishlist, the behaviour is potentially confusing.

Revision history for this message
Michael Vogt (mvo) wrote :

This is fixed in ubuntu now, incorrect password are displayed and the user is asked to retry.

Changed in gksu (Ubuntu):
status: Confirmed → Fix Released
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.