Results 1 to 4 of 4

Thread: sudo gedit doesn't work

  1. #1
    Join Date
    Apr 2010
    Location
    The Netherlands
    Posts
    166

    Default sudo gedit doesn't work

    Help! I am trying to edit a postinfo.xsl in my root file dir, and with the command:

    frank@linux-avnb:~> sudo gedit

    (gedit:14150): Gtk-WARNING **: cannot open display:
    frank@linux-avnb:~>


    I get the following. what am i doing wrong?



    Thanks in advance, Frank

  2. #2
    Join Date
    Aug 2008
    Location
    Seattle, WA
    Posts
    1,376

    Default Re: sudo gedit doesn't work

    Hit ALT+F2 to raise the run command, and enter

    gnomesu gedit

  3. #3

    Default Re: sudo gedit doesn't work

    personally i dislike "sudo" and its variants
    so if you DO HAVE a /root folder I would use " su -"
    Code:
    su -
    ---- your root password when asked--
    gedit
    i also DO use a different password for root and for a normal user
    suse defaults to the same password for both , i reset it on my system



  4. #4
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,728
    Blog Entries
    2

    Default Re: sudo gedit doesn't work

    IMO 'gnomesu gedit' is better than 'su -' +password + 'gedit'
    Leap 42.3 & 15.1 &KDE
    FYIs from the days of yore

Posting Permissions

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