Non-root users cannot run Xwindow

Rhugga Harper rhugga at gmail.com
Fri Nov 11 01:11:41 UTC 2005


My mistake, ssh -x disables it, ssh -X enables it.

-CC

On 11/10/05, Rhugga Harper <rhugga at gmail.com> wrote:
>
>
> That means that user doesn't have permission to use the local xserver.
> Typically the user that logs into the console 'owns' the display.
>
> The easy fix is this:
>
> As the user logged into the console:
> xhost +
>
> Then as the using you want to run the X app:
> export DISPLAY=localhost:0.0 (probably not needed but depends on
> envrionment)
> xterm &
>
> That should do it for you.
>
> If you are using to access this box, check if the sshd server has
> X11Forwarding enabled (I believe it is by default for most distro's)
>
> Then login an enable X tunnelling:
>
> ssh -x <server>
>
> Note: You can permanently enabled this in the ssh_config file on your
> client system, or by creating a $HOME/.ssh/config file.
>
> -CC
>
>
> On 11/10/05, Aaron White <awhite at ioppolo.com.au> wrote:
> >
> > Hi,
> >
> > I have a user trying to run windowed apps from command line, without
> > success. It seems to work okay with root access, but our current
> > situation does not allow for this.
> >
> > For example, trying to open xclock as non-root user gives the error:
> > Xlib: connection to ":0.0" refused by server
> > Xlib: No protocol specified.
> >
> > Error: Can't open display: :0.0
> >
> > We are connected using VNC Viewer (or remote shell) and do not have
> > access to the local site.
> >
> > Another windowed program gives a java error:
> > ~/jre/1.4.2/lib/i386/libawt.so: /usr/X11R6/lib/libXp.so.6:
> > undefined symbol: _Xsetlocale
> >
> > I'm not sure if the two are related, but our installation docs suggested
> >
> > using xclock to help troubleshoot
> > this problem. Alas, the docs did not mention what to do if xclock did
> > *not* start.
> >
> > Regards,
> >
> > Aaron White
> > Ioppolo & Associates
> >
> >
> > --
> > redhat-list mailing list
> > unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> > https://www.redhat.com/mailman/listinfo/redhat-list
> >
>
>



More information about the redhat-list mailing list