LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-27-2005, 12:55 PM   #1
Louwrens
LQ Newbie
 
Registered: May 2005
Location: The Netherlands
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
Question Xorg log: "X: client rejected ..."


Hello

Im not too sure whether this thread should be placed in the network forum, but here goes:

When running an X server on 172.16.0.5:
Code:
X :1
And trying to connect an xterm to it from 172.16.0.2:
Code:
$ xterm -display 172.16.0.5:1
Xlib: connection to "172.16.0.5:1.0" refused by server
Xlib: No protocol specified
It fails because it is rejected by the X server. Xserver log:
Code:
AUDIT: Sat Aug 27 17:34:45 2005: 3681 X: client 1 rejected from IP 172.16.0.2
How can this be? And what file should I edit to get it to work?

BTW: All this might be caused by the fact that I was fiddling around endlessly trying to get xdm+xdmcp working. It still isn't, I can't even login from localhost via xdm!
I think the above problem should be fixed before attampting to fix xdm, is this true?
 
Old 08-27-2005, 05:59 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Look at the xhost command (read man xhost), which allows you to set connection permissions to the X server.
 
Old 08-28-2005, 11:39 AM   #3
Louwrens
LQ Newbie
 
Registered: May 2005
Location: The Netherlands
Distribution: Slackware
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks,
I've tried xhost before but without success. After another try it seems it only alters the permissions when there is atleast one client attached to the server (such as xterm). When there is nothing attached to the X server, I can run xhost, but the screen flickers and the permissions are back to default. Am I correct? and why isnt this in the manual if I am?
 
Old 09-29-2005, 03:12 AM   #4
timsoft
Member
 
Registered: Oct 2004
Location: scotland
Distribution: slackware 15.0 64bit, 14.2 64 and 32bit and arm, ubuntu and rasbian
Posts: 495

Rep: Reputation: 144Reputation: 144
Assuming you have telnet or ssh'ed to 172.16.0.2
1. type export DISPLAY=172.16.0.5:0
this tells any xwindows programs you run in this session to redirect output to your 172.16.0.5 xwindows server.

2. Back on the xwindows server (172.16.0.5) ,make sure xwindows is running. edit /etc/X11/xdm/Xaccess and uncomment the line
#* #any host can get a login windows
(save the file) then type
xhost 172.16.0.2
this will set some security (not much) and let the xserver accept program
output from 172.16.0.2 . It has to talk to a running xserver, and the settings are lost when the session is over.

3. now back on 172.16.0.2 in your session where you just typed the export statement, try running somthing eg
startkde &
it should work now.
(it works for me running an xserver via cygwin on a windows pc, running the xprograms on a linux pc.)

Regards, Tim

Last edited by timsoft; 09-29-2005 at 08:41 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
New SQUID user: How to clear the "access.log" and "store.log" automatically? yuzuohong Linux - Networking 2 12-02-2006 05:37 AM
"mythtv-setup" giving "Session management error: Authentication Rejected" Mitchua Ubuntu 0 10-09-2005 04:32 PM
Error: "Tried to connect to session manager, Authentication Rejected, reason : None" randomx Linux - Software 0 01-24-2005 03:44 PM
Config problem: "Authorization failed: server rejected access" -- help please! womble_timsk Linux - Networking 0 05-22-2003 04:09 AM
Email Error - "Recipient address rejected: Relay access denied" ripcord Linux - Newbie 1 10-31-2002 03:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration