public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* Re: [gentoo-user] Gtk-WARNING **: cannot open display:
       [not found] <1120619225.7943.39.camel@localhost>
@ 2005-07-06  6:00 ` Dirk Heinrichs
  2005-07-06  6:44   ` W.Kenworthy
  2005-07-06  9:12 ` Holly Bostick
  1 sibling, 1 reply; 3+ messages in thread
From: Dirk Heinrichs @ 2005-07-06  6:00 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 741 bytes --]

Am Mittwoch, 6. Juli 2005 05:07 schrieb ext W.Kenworthy:

> After an update (possibly pam related) a couple of weeks ago, I can no
> longer run so X apps under sudo (starting apps from a root logged in via
> su in an xterm work fine).

Can you check if $DISPLAY is set correctly after sudo? If not, look up 
env_keep, env_reset settings in /etc/sudoers. See man sudoers for details.

HTH...

	Dirk
-- 
Dirk Heinrichs          | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: dirk.heinrichs@capgemini.com
Hambornerstraße 55      | Web:  http://www.capgemini.com
D-40472 Düsseldorf      | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net

[-- Attachment #2: Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] Gtk-WARNING **: cannot open display:
  2005-07-06  6:00 ` [gentoo-user] Gtk-WARNING **: cannot open display: Dirk Heinrichs
@ 2005-07-06  6:44   ` W.Kenworthy
  0 siblings, 0 replies; 3+ messages in thread
From: W.Kenworthy @ 2005-07-06  6:44 UTC (permalink / raw
  To: gentoo-user

Thanks, thats the hint I needed.  "env_reset" was spoiling things.
Enabling the exception for the wheel group fixed it safely.

BillK

On Wed, 2005-07-06 at 08:00 +0200, Dirk Heinrichs wrote:
> Am Mittwoch, 6. Juli 2005 05:07 schrieb ext W.Kenworthy:
> 
> > After an update (possibly pam related) a couple of weeks ago, I can no
> > longer run so X apps under sudo (starting apps from a root logged in via
> > su in an xterm work fine).
> 
> Can you check if $DISPLAY is set correctly after sudo? If not, look up 
> env_keep, env_reset settings in /etc/sudoers. See man sudoers for details.
> 
> HTH...
> 
> 	Dirk

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] Gtk-WARNING **: cannot open display:
       [not found] <1120619225.7943.39.camel@localhost>
  2005-07-06  6:00 ` [gentoo-user] Gtk-WARNING **: cannot open display: Dirk Heinrichs
@ 2005-07-06  9:12 ` Holly Bostick
  1 sibling, 0 replies; 3+ messages in thread
From: Holly Bostick @ 2005-07-06  9:12 UTC (permalink / raw
  To: gentoo-user

W.Kenworthy schreef:
> After an update (possibly pam related) a couple of weeks ago, I can no
> longer run so X apps under sudo (starting apps from a root logged in via
> su in an xterm work fine).  
> 
> In particular, I have some scripts using gtkdialog (which run as root)
> to ask "which network" for my laptop using a small gui before starting
> the correct network.  However, any attempt to open a dialog generates an
> error "(gtkdialog:18408): Gtk-WARNING **: cannot open display:"  xhost +
> doesnt help so its probably another PAM problem - can someone recommend
> where to look?
> 
> BillK
> 
> 

I had the same problem, but it was *not* PAM-related (I don't use PAM).
Found an answer on the forums (sorry, no link this time, maybe later)--
adding the following to sudoers (using visudo) worked for me:

# Allow users in group users to export specific variables
# Defaults:%users       env_keep=TZ
Defaults:%users         env_keep=DISPLAY

(the uncommented line is the additional line in question)

Hope this helps,
Holly
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-07-06  9:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1120619225.7943.39.camel@localhost>
2005-07-06  6:00 ` [gentoo-user] Gtk-WARNING **: cannot open display: Dirk Heinrichs
2005-07-06  6:44   ` W.Kenworthy
2005-07-06  9:12 ` Holly Bostick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox