Results 1 to 4 of 4

Thread: Why should I use gksudo gedit instead of sudo gedit

  1. #1
    Join Date
    Jun 2007
    Location
    Oz
    Beans
    501
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Why should I use gksudo gedit instead of sudo gedit

    Hello, I have Ubuntu 9.04.

    I edit configuration files while I'm setting up Ubuntu.
    I see much advice to use "gksu gedit" or "gksudo gedit" to edit files. But also "sudo gedit" works just fine too.

    Please explain why there are three options and which is the recommended option and why.

    PS what would it be in Kubuntu. I note that "sudo kate" works in my Kubuntu. Should I be using like "kdesu kate"?

    Thanks
    swerdna

  2. #2
    Join Date
    Jan 2007
    Beans
    6,537
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Why should I use gksudo gedit instead of sudo gedit

    Why to use gksudo.

    gksu and gksudo are effectively the same thing. And yes, kdesu for KDE.
    Last edited by Paqman; June 30th, 2009 at 01:56 PM.

  3. #3
    Join Date
    Jul 2008
    Beans
    788
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Why should I use gksudo gedit instead of sudo gedit

    From the manual page of gksudo & gksu:

    DESCRIPTION
    This manual page documents briefly gksu and gksudo

    gksu is a frontend to su and gksudo is a frontend to sudo. Their pri-
    mary purpose is to run graphical commands that need root without the
    need to run an X terminal emulator and using su directly.
    EDIT: Sorry just realised that didn't really answer your question luckily my lack of comprehension was countered by the the response before mine.
    Last edited by porchrat; June 30th, 2009 at 01:56 PM.
    Any sufficiently advanced bug is indistinguishable from a feature.
    "Ubuntu" - an African word meaning "Gentoo is too hard for me"
    unexpected token <EOF> expected "WITTY ONE-LINER"

  4. #4
    Join Date
    Jun 2007
    Location
    Oz
    Beans
    501
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Why should I use gksudo gedit instead of sudo gedit

    OK, that all makes sense, in light of the link, thanks.

    And I see from "ls -l /usr/bin | grep gksu" that gksudo is now just a pseudonym for gksu in Ubuntu.

    So gksu and kdesu for me from now on.

    Another little thing laid to rest

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
  •