Edmund R. MacKenty wrote:
On Friday 01 February 2008 13:53, Kim Goldenberg wrote:
Mark - I still get "Gtk-WARNING **: cannot open display: " with a "sudo
gedit foo" command that works when I use "gedit foo".
If you pasted the entire error message here, then it looks like the DISPLAY
variable is not set in your environment. Is that the case? Of course, you
could have just left of the display number at the end of the message...
I always try to run a very basic X-Windows command to see if authentication is
working: xclock. If you can't run xclock, then you have either a display
specification problem or an X authentication problem. The first thing is to
make sure DISPLAY is set on your remote system
to "<hostname>:<display>.<screen>", where "<hostname>" is the name of your
local X server system (resolvable from the remote system), and <display> and
<screen> are usually zero.
- MacK.
MacK - No, that's the whole error message. I got the same ideas as you,
but as you can see below, that does not seem to be the case. xclock
works from the non-root user, but not under sudo.
[EMAIL PROTECTED]:~> echo $DISPLAY
localhost:10.0
[EMAIL PROTECTED]:~> sudo echo $DISPLAY
localhost:10.0
[EMAIL PROTECTED]:~> su
Password:
lnxb0003:/home/otsgold # echo $DISPLAY
localhost:10.0
lnxb0003:/home/otsgold # uname -a
Linux lnxb0003 2.6.16.54-0.2.3-default #1 SMP Thu Nov 22 18:32:07 UTC
2007 s390x s390x s390x GNU/Linux
lnxb0003:/home/otsgold # cat /etc/SuSE-release
SUSE Linux Enterprise Server 10 (s390x)
VERSION = 10
PATCHLEVEL = 1
lnxb0003:/home/otsgold #
--
Kim Goldenberg
Systems Programmer I
State of NJ - OIT
609-777-3722
[EMAIL PROTECTED]
[EMAIL PROTECTED]
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
begin:vcard
fn:Kim Goldenberg
n:Goldenberg;Kim
org:State of New Jersey;Office of Information Technology (OIT)
adr:200 Riverview Plaza;;PO Box 212;Trenton;NJ;08625-0212;USA
email;internet:[EMAIL PROTECTED]
title:Systems Programmer I
tel;work:609-777-3722
tel;fax:609-777-3939
x-mozilla-html:FALSE
url:http://www.state.nj.us
version:2.1
end:vcard