- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Xhost + is not working
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
тАО08-20-2001 01:52 PM
тАО08-20-2001 01:52 PM
I logon in to system as a normal user then I su - then set the display
#setenv DISPLAY scrappy:0.0
#echo $DISPLAY shows me
scrappy:0.0 that is my correct display.
nslookup works both way.
When I run xhost + it generates error
Xlib: connection to "scrappy:0.0" refused byserver
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
Xhost: unable to open display "scrappy:0.0"
In other thread Mr Alex Glennie suggest to change /etc/dt/config/Xconfig file where now I have
Dtlogin*autorise: False
Sachin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2001 01:58 PM
тАО08-20-2001 01:58 PM
Re: Xhost + is not working
login again.
-Srid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2001 02:21 PM
тАО08-20-2001 02:21 PM
Re: Xhost + is not working
NOP. still same error
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2001 02:52 PM
тАО08-20-2001 02:52 PM
Re: Xhost + is not working
On the terminal where xhost is failing,
run the command xauth and list and see
what's happening there?.
#xauth
xauth> list
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2001 11:04 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2001 12:28 AM
тАО08-21-2001 12:28 AM
Re: Xhost + is not working
.Xauthority file contains "magic cookie", a key
to identify a client. This file is owned by the
first user connected (so if you logon as user1
and su - root, the display is "owned" by user1).
xhost + must be launched by the display owner
(user1 in my example). So you have to use xhost +
before to su another user :
as user1 :
> xhost +
> su -
as root :
> setenv DISPLAY your_display:0.0
You can try to launch xclock for example, it may
work now...
HTH
Herv?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2001 08:14 AM
тАО08-21-2001 08:14 AM
Re: Xhost + is not working
I reboot the system and it works. I try same thing on another workstation and it work there too. But now question is why it works on system which doesn't even have /etc/dt/config/Xconfig file
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2001 02:27 PM
тАО08-21-2001 02:27 PM
Re: Xhost + is not working
the directories below "/etc/dt/config"
are only used, well, if they exist...
if not, then the files are searched below
"/usr/dt/config" (where you should never
ever do any modifications - the next patch
will happily overwrite your work :-( copy
the file to "/etc/dt/config" and modify the
copy there).
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2001 08:44 AM
тАО08-22-2001 08:44 AM
Re: Xhost + is not working
% ssh -X root@localhost
no DISPLAY magic needed...