Results 1 to 6 of 6

Thread: GParted file system support / running programs as root

  1. #1
    Join Date
    Apr 2010
    Location
    Chicago, IL
    Posts
    171

    Question GParted file system support / running programs as root

    I have GParted installed, running openSUSE 11.3 with GNOME. When running GParted, it always grayed out most file system actions, supporting only hfs fully. This made no sense, as I had all the required packages installed for other file system support.

    However, I recently figured out how to get it to work. Using the installed menu button doesn't work, running "gnomesu /usr/sbin/gparted" doesn't work; to get it to work, I have to open up a terminal, type "su -" to log in as root, and then run gparted.

    Any idea why this would be the case? The menu button and gnomesu both prompt for a password, so it should be running as root, but launching it through the root terminal is the only way to actually get it to work. Is one root different from another?

  2. #2
    Carlos E. R. NNTP User

    Default Re: GParted file system support / running programs as root

    On 2010-09-27 08:36, kog13 wrote:

    > Any idea why this would be the case? The menu button and gnomesu both
    > prompt for a password, so it should be running as root, but launching it
    > through the root terminal is the only way to actually get it to work. Is
    > one root different from another?


    Dash (-).

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)

  3. #3
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: GParted file system support / running programs as root

    kog13 wrote:
    > Is one root different from another?


    here is a 47 post long thread that answers that question...but, do NOT
    stop until you have read them all...because some (especially at the
    beginning) offered incorrect information...

    http://tinyurl.com/ydbwssh

    Carlos answered you correctly, in a nut shell... yes, not all root
    shells are born the same..

    read man su, and the above cite and you will soon know more than some
    'experts' who hang out around here (some with a lots of experience in
    one of those other distros that won't let you log in as root, and
    instead require you to sudo--with no understanding of what is really
    going on)..

    --
    DenverD
    CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]
    When it comes to chocolate, resistance is futile.

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,368

    Default Re: GParted file system support / running programs as root

    And a shorter way to swallow the information about how you can/should become root can be studied here: SDB:Login as root - openSUSE
    Henk van Velden

  5. #5
    Join Date
    Apr 2010
    Location
    Chicago, IL
    Posts
    171

    Default Re: GParted file system support / running programs as root

    I just did a quick test, and logging in as root using simply "su" (without the dash) also works, but using "su -m" (which preserves the environment) makes it fail. So in order for it to run correctly, gparted needs not only root privileges, but the root environment. Is there a way to have xdg-su (which the menu item uses) or gnomesu use root's environment as well as its privileges?

  6. #6
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,368

    Default Re: GParted file system support / running programs as root

    There are numerous threads about this here on the forums. We found that kdesu does the su - behaviour (of course, else it would be a real security hole). I wonder if gnomesu does not do also (can't believe they are not security consious there).
    Henk van Velden

Tags for this Thread

Posting Permissions

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