From nobody@FreeBSD.org  Fri Apr 20 14:08:16 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 80E9537B43E
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 20 Apr 2001 14:08:15 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f3KL8Fm91059;
	Fri, 20 Apr 2001 14:08:15 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200104202108.f3KL8Fm91059@freefall.freebsd.org>
Date: Fri, 20 Apr 2001 14:08:15 -0700 (PDT)
From: sucho2@vt.edu
To: freebsd-gnats-submit@FreeBSD.org
Subject: I can't seem to open files through console as a super user!
X-Send-Pr-Version: www-1.0

>Number:         26739
>Category:       i386
>Synopsis:       I can't seem to open files through console as a super user!
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 20 14:10:03 PDT 2001
>Closed-Date:    Sat Apr 28 18:55:18 PDT 2001
>Last-Modified:  Sat Apr 28 18:55:33 PDT 2001
>Originator:     Sung N. Cho
>Release:        FreeBSD 4.3-RC4
>Organization:
Dept. of Physics, Virginia Polytechnic Institute & State University
>Environment:
FreeBSD 198.82.247.66 4.3-RC4 FreeBSD 4.3-RC4 #0: Fri Apr 20 16:14:32 EDT 2001
sncho@198.82.247.66:/usr/src/sys/compile/MYKERNEL    i386
>Description:
I am at the moment using XFree86 4.03.  When I try to run say, gedit
or any other programs as a super user from console, I get connection to
":0.0" refused by server!  Here's exactly what's on my screen.


%su
Password:
198# gedit
Xlib: connection to ":0.0" refused by server
Xlib: Client is not authorized to connect to Server

Gtk-WARNING **: cannot open display: :0
198# 

Any way I can change in xserver setting so I can open editors as a super user?

Thank you.


Yours sincerely,
Sung N. Cho,
Friday, April 20, 2001.
>How-To-Repeat:
Log in to gnome or any othe desktop or window managers as a regular user.
Then open terminal or console.  Try to run any programs, say gedit or kedit
as a super user.
>Fix:

>Release-Note:
>Audit-Trail:

From: User & <maav@enia.bastun.net>
To: sucho2@vt.edu
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: i386/26739: I can't seem to open files through console as a super user!
Date: Sat, 21 Apr 2001 00:59:26 +0300

 What about using xhost ? xhost +localhost will work I think.
 
 Boris Georgiev
 
 On Fri, Apr 20, 2001 at 02:08:15PM -0700, sucho2@vt.edu wrote:
 > 
 > >Number:         26739
 > >Category:       i386
 > >Synopsis:       I can't seem to open files through console as a super user!
 > >Confidential:   no
 > >Severity:       critical
 > >Priority:       high
 > >Responsible:    freebsd-bugs
 > >State:          open
 > >Quarter:        
 > >Keywords:       
 > >Date-Required:
 > >Class:          change-request
 > >Submitter-Id:   current-users
 > >Arrival-Date:   Fri Apr 20 14:10:03 PDT 2001
 > >Closed-Date:
 > >Last-Modified:
 > >Originator:     Sung N. Cho
 > >Release:        FreeBSD 4.3-RC4
 > >Organization:
 > Dept. of Physics, Virginia Polytechnic Institute & State University
 > >Environment:
 > FreeBSD 198.82.247.66 4.3-RC4 FreeBSD 4.3-RC4 #0: Fri Apr 20 16:14:32 EDT 2001
 > sncho@198.82.247.66:/usr/src/sys/compile/MYKERNEL    i386
 > >Description:
 > I am at the moment using XFree86 4.03.  When I try to run say, gedit
 > or any other programs as a super user from console, I get connection to
 > ":0.0" refused by server!  Here's exactly what's on my screen.
 > 
 > 
 > %su
 > Password:
 > 198# gedit
 > Xlib: connection to ":0.0" refused by server
 > Xlib: Client is not authorized to connect to Server
 > 
 > Gtk-WARNING **: cannot open display: :0
 > 198# 
 > 
 > Any way I can change in xserver setting so I can open editors as a super user?
 > 
 > Thank you.
 > 
 > 
 > Yours sincerely,
 > Sung N. Cho,
 > Friday, April 20, 2001.
 > >How-To-Repeat:
 > Log in to gnome or any othe desktop or window managers as a regular user.
 > Then open terminal or console.  Try to run any programs, say gedit or kedit
 > as a super user.
 > >Fix:
 > 
 > >Release-Note:
 > >Audit-Trail:
 > >Unformatted:
 > 
 > To Unsubscribe: send mail to majordomo@FreeBSD.org
 > with "unsubscribe freebsd-bugs" in the body of the message

From: <andrew@ugh.net.au>
To: <freebsd-gnats-submit@FreeBSD.org>, <sucho2@vt.edu>
Cc:  
Subject: Re: i386/26739: I can't seem to open files through console as a
 super user!
Date: Sun, 22 Apr 2001 00:40:08 +1000 (EST)

 Instead of using su use su -m. This way X clients will use the
 authentication keys(?) of the original user rather than of root (who isn't
 allowed to connect). This also means that you keep your shell settings -
 great if you have multiple people who adminster a box.
 
 Thanks,
 
 Andrew
 
State-Changed-From-To: open->closed 
State-Changed-By: dd 
State-Changed-When: Sat Apr 28 18:55:18 PDT 2001 
State-Changed-Why:  
Questions belong on questions@freebsd.org, not in the PR database. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=26739 
>Unformatted:
