Results 1 to 10 of 10

Thread: Gedit with sudo

  1. #1

    Default Gedit with sudo

    Hi, I'm new to opensuse and I set-up my Sudo it works but when I use Gedit I get the following message

    Jean-Luc@localhost:~> sudo gedit /etc/fstab

    (gedit:7137): Gtk-WARNING **: cannot open display:

    samething with /etc/sudoers

    If I use vi it's ok, I can modify and save.

    In Fedora it run ok, but with opensuse???


    thank you.

  2. #2
    Join Date
    Nov 2009
    Location
    West by God Virginia
    Posts
    7,231

    Default Re: Gedit with sudo

    Well to be honest I never use sudo I just use su -, but I think you must have set something wrong when you configured because you should have not needed to configure anything. Sudo should work out of the box.

  3. #3
    Join Date
    Jun 2008
    Location
    Natchez, MS, USA
    Posts
    550

    Default Re: Gedit with sudo

    Try this.

    su
    gedit /etc/fstab
    Free Fractal Wallpapers
    http://wilsonephillips.smugmug.com

  4. #4
    Join Date
    Aug 2008
    Location
    Seattle, WA
    Posts
    1,521

    Default Re: Gedit with sudo

    Or

    gnomesu gedit /etc/fstab

    Gnomesu is the GTK+ front end for su.

  5. #5

    Default Re: Gedit with sudo

    Hi, that's fine if anyone don't known, I'll try an alternate command. Maybe people with opensuse don't use sudo often but in Fedora it's work great.

    Thank you.

  6. #6
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    16,394
    Blog Entries
    14

    Default Re: Gedit with sudo

    Quote Originally Posted by punklinux
    Hi, that's fine if anyone don't known, I'll try an alternate command.
    Maybe people with opensuse don't use sudo often but in Fedora it's work
    great.

    Thank you.
    Hi
    It's more of openSUSE using a bit tighter security, you could modify
    the sudoers (visudo) file to run the xhost+ local:root and your
    commands, but IMHO it's easier to use the builtin gnomesu/kdesu than
    modify a file that may be over written on an update.

    --
    Cheers Malcolm (Linux Counter #276890)
    SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.42-0.1-default
    up 20:12, 4 users, load average: 0.12, 0.14, 0.09
    GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.53


  7. #7

    Default Re: Gedit with sudo

    Hi, thats what I did edit the visudo file, but I still get the gedit error, thank anyway so I'll try another way to edit the files.

    thx.

  8. #8
    Join Date
    Nov 2009
    Location
    West by God Virginia
    Posts
    7,231

    Default Re: Gedit with sudo

    My point is the sudo does work out of the box. The first time you run it you get a little lecture before you enter the root password but then it runs as expected. You do not have to do configuration. I think the OP miss configured it.

  9. #9

    Default Re: Gedit with sudo

    I've find these site before posting.
    Before it didn't work after it did.

    Administer with Sudo - openSUSE

    How to configure sudo and delegate authority in openSUSE | SUSE & openSUSE

  10. #10
    Join Date
    Aug 2008
    Location
    Seattle, WA
    Posts
    1,521

    Default Re: Gedit with sudo

    Quote Originally Posted by punklinux View Post
    Hi, that's fine if anyone don't known, I'll try an alternate command. Maybe people with opensuse don't use sudo often but in Fedora it's work great.
    I'm not sure what the argument for sudo is. You could use vi (or nano) to edit the file. These are text-based editors. But, if you prefer a GUI, gnomesu (or kdesu) is used for this purpose.

Posting Permissions

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