- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Re: Xhost/Xlib error
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2007 02:58 PM
тАО04-04-2007 02:58 PM
Re: Xhost/Xlib error
If this is the case, I will need to kill all login session before executing xhost +
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2007 03:07 PM
тАО04-04-2007 03:07 PM
Re: Xhost/Xlib error
you will get that error. If you log in as
the _same_ user as is logged in there, and
set your DISPLAY the same as that user, or if
you "su other_user" (and set your DISPLAY the
same), then it should work.
And you may not need to do the "xhost +"
unless you stop being "other_user".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2007 03:18 PM
тАО04-04-2007 03:18 PM
Re: Xhost/Xlib error
Here is a list of xterm alraedy running in the system:
# ps -ef | grep -i term
root 131890 1 0.0 Apr 02 ?? 0:08.42 xterm
root 132135 1 0.0 Apr 02 ?? 3:12.84 xterm
root 208916 1 0.0 Mar 26 ?? 0:03.54 xterm
root 495300 1 0.0 Mar 22 ?? 1:41.78 xterm -geometry 80x24+10+10 -ls -title X Desktop
root 495407 495362 0.0 Mar 22 pts/5 0:15.71 xterm
root 131674 497279 0.0 Apr 02 pts/8 0:01.05 xterm
root 315419 313855 0.0 13:16:31 pts/15 0:00.00 grep -i term
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2007 03:47 PM
тАО04-04-2007 03:47 PM
Re: Xhost/Xlib error
X server trusts. If user "fred" is logged in
at the console, then user "fred" controls
these things, and normally only user "fred"
can do an "xhost" command.
However, user "root" can do "su fred", and
then he can do the same things that user
"fred" can do.
Here, with user "sms" logged in at the Tru64
console:
alp $ rsh /user = sms urtx
[...]
urtx> who am i
sms pts/4 Apr 4 22:44 (alp.antinode.org)
urtx> export DISPLAY=:0.0
urtx> xhost
access control enabled, only authorized clients can connect
alp $ rsh /user = root urtx
[...]
urtx# who am i
root pts/4 Apr 4 22:45 (alp.antinode.org)
urtx# export DISPLAY=:0.0
urtx# xhost
Xlib: connection to ":0.0" refused by server
Xlib: Client is not authorized to connect to Server
xhost: unable to open display ":0.0"
But:
urtx# su sms
urtx# export DISPLAY=:0.0
urtx# xhost
access control enabled, only authorized clients can connect
Problem solved (again).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2007 04:16 PM
тАО04-04-2007 04:16 PM
Re: Xhost/Xlib error
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2007 05:23 PM
тАО04-04-2007 05:23 PM
Re: Xhost/Xlib error
variable, it's about who's logged in at the
graphics console. This would seem to be the
user who owns the "dtsession" process:
urtx# ps -ef | grep /usr/dt/bin/dtsession | grep -v grep
sms 1838 1816 0.0 22:02:42 ?? 0:00.41 /usr/dt/bin/dtsession
In this case, it's "sms". If you don't find
it, then no one's logged in there, and you're
back to a previous problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2007 05:30 PM
тАО04-04-2007 05:30 PM
Re: Xhost/Xlib error
ps -ef | grep /usr/dt/bin/dtsession | grep -v grep
returns nothing.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2007 05:42 PM
тАО04-04-2007 05:42 PM
Re: Xhost/Xlib error
> ps -ef | grep /usr/dt/bin/dtsession | grep -v grep
> returns nothing.
Which is what I'd expect after you killed the
X server, and before anyone has logged in
again at the console.
Look back at the part about "If no one is
logged in there, who will be looking at the
stuff you want to put onto the display?"
If someone _is_ logged in there (and that
user's name does not include the string
"grep"), and it _still_ shows nothing, then
I'm lost.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2007 05:54 PM
тАО04-04-2007 05:54 PM
Re: Xhost/Xlib error
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2007 06:36 PM
тАО04-04-2007 06:36 PM
Re: Xhost/Xlib error
For what? Are you saying that there _is_ a
user logged in at the graphics console, but
there's no dtsession process?