Page 1 of 2 12 LastLast
Results 1 to 10 of 17

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

  1. #1
    Join Date
    Sep 2009
    Location
    mexico
    Beans
    11
    Distro
    Ubuntu 9.10 Karmic Koala

    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.

    Running Ubuntu 12.10 (quantal) 64-bit
    Kernel Linux 3.5.0-22 generic
    Gnome 3.6.0 (installed via gnome-shell with apt-get)

    Any help is appreciated.
    Last edited by Snowingheart; March 4th, 2013 at 06:38 AM. Reason: To mark as solved

  2. #2
    Join Date
    Jun 2007
    Location
    A hole in the ground
    Beans
    809

    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

  3. #3
    Join Date
    Sep 2009
    Location
    mexico
    Beans
    11
    Distro
    Ubuntu 9.10 Karmic Koala

    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.

  4. #4
    Join Date
    May 2008
    Location
    SoCal
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

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

    Quote Originally Posted by Snowingheart View Post
    ... 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?
    -BAB1

  5. #5
    Join Date
    Sep 2009
    Location
    mexico
    Beans
    11
    Distro
    Ubuntu 9.10 Karmic Koala

    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.

  6. #6
    Join Date
    Sep 2008
    Location
    Philadelphia, PA
    Beans
    5,193
    Distro
    Ubuntu 12.04 Precise Pangolin

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

    For GUI applications you should issue the gksudo instead of the sudo. Read this
    Multi-boot: Arch linux, Ubuntu 12.04, Windows 7 & Windows 8

  7. #7
    Join Date
    Sep 2009
    Location
    mexico
    Beans
    11
    Distro
    Ubuntu 9.10 Karmic Koala

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

    I think that gksudo is used to run an application as root, right?

    That's not what I want. I just want to enable some feature of an application that needs admin rights to work.

    Here's the screen I'm talking about: https://www.dropbox.com/sh/9ml26w8lr...%3A37%3A03.png

    And the error message: https://www.dropbox.com/lightbox/hom...%3A43%3A35.png

  8. #8
    Join Date
    May 2008
    Location
    SoCal
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

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

    Quote Originally Posted by Snowingheart View Post
    I think that gksudo is used to run an application as root, right?

    That's not what I want. I just want to enable some feature of an application that needs admin rights to work.

    Here's the screen I'm talking about: https://www.dropbox.com/sh/9ml26w8lr...%3A37%3A03.png

    And the error message: https://www.dropbox.com/lightbox/hom...%3A43%3A35.png
    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?
    -BAB1

  9. #9
    Join Date
    Sep 2009
    Location
    mexico
    Beans
    11
    Distro
    Ubuntu 9.10 Karmic Koala

    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?

  10. #10
    Join Date
    Oct 2005
    Location
    INDY
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

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

    You would need to lock the root account again not just remove the password.
    Take a look at this link and re-lock the root account and the issue "should" correct itself.
    http://www.ubuntugeek.com/enable-and...-password.html

    This is a very old instruction, but I don't think anything has changed since.
    HTH
    Castles Made of Sand,
    Fall in the Sea,
    Eventually!

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •