Results 1 to 6 of 6

Thread: Running Gui apps as superuser

  1. #1

    Default Running Gui apps as superuser

    Hi All,

    Im comming from ubuntu/mint and one of the things I got used too was doing something like "sudo nautilus" or "sudo gedit" and similar things. In Suse 11.3 I always get errors like the following

    (gedit:6115): Gtk-WARNING **: cannot open display:
    kate: cannot connect to X server
    Could not parse arguments: Cannot open display:

    or similar variations of these.

    What can I so to prevent this from happening? even if I do "su" and try from there it doesnt always work.

    I like Suse as it feels more professional then ubuntu, but I am trying to make it as user friendly.

  2. #2
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: Running Gui apps as superuser

    kdesu gedit

    or

    gnomesu gedit

  3. #3

    Default Re: Running Gui apps as superuser

    My posts keep keep not going through on chromium .. but as I said.. you just DISPLAY=:0.0 assuming that :0.0 is your current shells display variable (which can be viewed using echo $DISPLAY
    How much can you know about yourself if you've never been in a fight. - Fight Club

    Ben Kevan's Blog - That's me

  4. #4
    Join Date
    Aug 2009
    Location
    Mountain View, CA
    Posts
    204

    Default Re: Running Gui apps as superuser

    Quote Originally Posted by eclipseagent View Post
    My posts keep keep not going through on chromium .. but as I said.. you just DISPLAY=:0.0 assuming that :0.0 is your current shells display variable (which can be viewed using echo $DISPLAY
    This can cause security issues especially when remote X forwarding is enabled....

    A better and more correct way of doing it is through kdesu or gnomesu.....

  5. #5
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: Running Gui apps as superuser

    Quote Originally Posted by eclipseagent View Post
    My posts keep keep not going through on chromium .. but as I said.. you just DISPLAY=:0.0 assuming that :0.0 is your current shells display variable (which can be viewed using echo $DISPLAY
    Also it's not guaranteed to work if X cookies are used.

  6. #6
    Join Date
    Jul 2010
    Location
    Kansas City
    Posts
    2

    Default Re: Running Gui apps as superuser

    ssh -X root@localhost
    xterm &
    HW: ASUS M4A78-E, AMD Phenom 9500 X4, x86_64, 8GB, nVidia GeForce 9600 GT 2GB
    OS: 11.3, x86_64, Linux 2.6.34, GCC 4.5.0, glibc-2.11.2, X.Org 7.5_1.8.0, nVidia 256.35

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
  •