I have a menu item, 'sudo gedit', which has worked for years but just
stopped working (on a current testing system). Running from the
command line, I get:
No protocol specified
(gedit:30084): Gtk-WARNING **: cannot open display: :0.0
as I do when I try to run gedit in a root terminal. I hope this is
not another example of putting misplaced security concerns ahead of
functionality. It's not a problem with my sudoers file as another
menu item, which runs 'sudo aptitude' in a terminal, works. How can I
run gedit as root?
Patrick
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: AANLkTimvUvozB2+G4n44znfa7uH2fhn2R+mQG1aJJXe0@mail .gmail.com">http://lists.debian.org/AANLkTimvUvozB2+G4n44znfa7uH2fhn2R+mQG1aJJXe0@mail .gmail.com
09-30-2010, 08:43 PM
Patrick Wiseman
'sudo gedit' stopped working
On Thu, Sep 30, 2010 at 4:37 PM, Patrick Wiseman <pwiseman@gmail.com> wrote:
> I have a menu item, 'sudo gedit', which has worked for years but just
> stopped working (on a current testing system). *Running from the
> command line, I get:
>
> No protocol specified
>
> (gedit:30084): Gtk-WARNING **: cannot open display: :0.0
>
> as I do when I try to run gedit in a root terminal. *I hope this is
> not another example of putting misplaced security concerns ahead of
> functionality. *It's not a problem with my sudoers file as another
> menu item, which runs 'sudo aptitude' in a terminal, works. *How can I
> run gedit as root?
Sorry to answer my own question - 'gksudo gedit' works (although why
sudo no longer works, I don't know).
Patrick
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/AANLkTik?d27D«gihEsS9hwTTm9uMZjcynzADQj2o@mail.gma il.com
09-30-2010, 08:44 PM
Jordan Metzmeier
'sudo gedit' stopped working
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On 09/30/2010 04:37 PM, Patrick Wiseman wrote:
> I have a menu item, 'sudo gedit', which has worked for years but just
> stopped working (on a current testing system). Running from the
> command line, I get:
>
> No protocol specified
>
> (gedit:30084): Gtk-WARNING **: cannot open display: :0.0
>
> as I do when I try to run gedit in a root terminal. I hope this is
> not another example of putting misplaced security concerns ahead of
> functionality. It's not a problem with my sudoers file as another
> menu item, which runs 'sudo aptitude' in a terminal, works. How can I
> run gedit as root?
>
> Patrick
>
>
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4CA4F6C6.7050703@gmail.com">http://lists.debian.org/4CA4F6C6.7050703@gmail.com
10-04-2010, 03:56 AM
T o n g
'sudo gedit' stopped working
On Thu, 30 Sep 2010 16:43:20 -0400, Patrick Wiseman wrote:
>> I have a menu item, 'sudo gedit', which has worked for years but just
>> stopped working (on a current testing system). *. . .
>
> Sorry to answer my own question - 'gksudo gedit' works (although why
> sudo no longer works, I don't know).
Found the answer for ya:
sudo has changed from a blacklist to a whitelist model for
environment variables. I.e., sudo no longer lets DISPLAY through
without you telling it to first. See http://bugs.debian.org/349729
for instructions on workarounds
--
Tong (remove underscore(s) to reply)
http://xpt.sourceforge.net/techdocs/
http://xpt.sourceforge.net/tools/
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: i8bj9a$33k$4@dough.gmane.org">http://lists.debian.org/i8bj9a$33k$4@dough.gmane.org