Bug 26739

Summary: I can't seem to open files through console as a super user!
Product: Base System Reporter: sucho2 <sucho2>
Component: i386Assignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description sucho2 2001-04-20 22:10:03 UTC
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.
Comment 1 maav 2001-04-20 22:59:26 UTC
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
Comment 2 Andrew Stevenson 2001-04-21 15:40:08 UTC
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
Comment 3 dd freebsd_committer freebsd_triage 2001-04-29 02:55:18 UTC
State Changed
From-To: open->closed

Questions belong on questions@freebsd.org, not in the PR database.