Broken Sudo (graphical sudo, not in terminal)

Hello,

I have an issue whenever I use any program that requires root authorization. For instance, trying to install software via Ubuntu Software Center yields a black "pop-up" prompting for root credentials; after I input them and hit enter, it lags a little and just displays the message: "Sorry, that did not work. Please try again."

Of course my password is correct, otherwise I would not be asking here.

I've read somewhere that there's a gk-sudo and it is useful to circumvent this issue, whenever I know the name of the program I want to use, but I'd rather have the "usual" sudo working and be done with it.

And yeah, usual sudo (as in within terminal) works just fine. It's just the one in the graphical environment that's broken.

Re: Broken Sudo (graphical sudo, not in terminal)

gksudo should already be installed by default. Try hitting alt-F2 or opening a terminal and typing "gksudo your-command" of course replacing your-command with the command you are actually trying to run.

Edit: I put gtksudo rather than gksudo

‎"Beauty in things exists in the mind which contemplates them." -- David Hume

Re: Broken Sudo (graphical sudo, not in terminal)

Hi, and thanks for the reply.

I had read about that, but the thing I'm looking for is fixing the existing sudo pop-up message. That is, I do not want to use gtksudo <command>, but instead want to fix the screen that pops up asking for my root password.

Re: Broken Sudo (graphical sudo, not in terminal)

Originally Posted by Snowingheart

... I do not want to use gtksudo <command>, but instead want to fix the screen that pops up asking for my root password.

Ubuntu by default never asks for a root password. Rather it, asks for your password to verify that you are a allowed to used sudo for root privileges. This would be for sudo, gksudo and gksu. Are you trying to use the wrong password? Do you have a password for the root account? Have you altered sudo or changed your password?

Re: Broken Sudo (graphical sudo, not in terminal)

Bad choice of words, my pardons.

What I meant is that the graphic environment sometimes has to ask for "Administrator authorization" or something like that to run things like installations, disk operations, mounting a specific drive and stuff like that.

That said, in the past it prompted for the "admin" password, which is my user's password, since it is in the admin group, and it let me do whatever the task it was.
Now, that does not work, even though the password is the correct one.

As for the part of enabling a root account, I did, in the past, but disabled it afterwards. I do not know if that might be the issue, since I don't know which of sudo, gksudo or gksu is asking for authorization. And I can't take a screenshot, since it "locks" the screen when asking for that.

Sudo, gksudo and gksu all use the same routines (e.g sudo) This is what the "pop-up" is asking for: sudo authentication. There is no admin rights other than the sudoers group as such. Did you create a user named administrator?

Re: Broken Sudo (graphical sudo, not in terminal)

Yeah.. I think I have figured it out. I did enable a root account; that is, the actual user "root" has an entry in passwd. I seem to recall I "disabled" that account just by running passwd and setting an empty password for that user. I'm not quite sure where I read that, but that's what I did.

SO, I think the issue is that the "pop-up" is asking for the actual root user password, and not my-user sudo password...

Thus, I ran passwd again and set a dummy password, re-tested and it works. Thing is, I read that it's not a wise thing to have an actual root user enabled in Ubuntu (for some sort of safety reasons). That said, how could I go about deleting/disabling the existing root account and still being able to authenticate via the "pop-up" window?