LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 04-11-2006, 04:09 AM   #1
Berkut83
Member
 
Registered: Jan 2006
Distribution: red hat enterprise 3.0
Posts: 47

Rep: Reputation: 15
Xauth doesn't work at runlevel 5, and everyone can access my X server


Hi all,
the question is simple,
why xauth doesn't work?

I have linux installed with default options but xauth doesn't work. I have already checked the file xdm-config and the lines needed to xauth are already set to true value.

If i launch "xauth list" i see that at every boot it generates new cookies

But how is possible that every client around me can launch applications using my X server? It seems that xauth absolutely doesn't control the host client cookie, it just allows everyone to use X server


I have searched information all over the world, i can't really understand how this damned xauth works.

It isn't true that it checks cookies because anyone can connects, just make sure that xhost is disable and everyone is free to do what he wants.

So what do i have to do??

The best information i have found is to check xdm-config to make sure that some lines are set to true but they are already set to this status

I have found this behaviour in 3 different linux machines.

This time i am really lost, i have search in more
than 5 books and all over internet...please help me if you want

thanks in advance

Last edited by Berkut83; 04-11-2006 at 04:32 AM.
 
Old 04-11-2006, 07:48 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Xauth is easy, the most common application is this:
Suppose you log in as user1, you want to allow user2 to be able to open the display of user1.

*
under <user1>:
$xauth list
Code:
<hostname>/unix:0  MIT-MAGIC-COOKIE-1 03f3300ed7caa12e87ebcc0c2d51516c
*
under <user2>:
Code:
$xauth add  <hostname>/unix:0  MIT-MAGIC-COOKIE-1 03f3300ed7caa12e87ebcc0c2d51516c


Now in your case it is not using x auth mechanism, I see three reasons:

* you have a xhost + somewhere which removes all check
from <user1> try
Code:
xhost -
and retry as <user2> to open a window
* your xserver is launched in mode 'no auth required' with option -ac.
try
Code:
ps -ef | grep X
* there is a link from <user2>/.xauthority to <user1>/.xauthority and <user2> has read access to <user1>/.xauthority. This is a big security risk. ( Only /root/.Xauthority could be linked to /home/user1/.Xauthority and as root has read access to this latter then it allows root to access the Xdisplay of user1)
 
Old 04-19-2006, 05:00 AM   #3
Berkut83
Member
 
Registered: Jan 2006
Distribution: red hat enterprise 3.0
Posts: 47

Original Poster
Rep: Reputation: 15
thanks, now it works

I didn't think that it needs xhost control active.

bye!
 
  


Reply

Tags
xauth



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
What's the difference between runlevel 2 and runlevel 5 in Debian? davidas Linux - Newbie 2 01-05-2012 01:10 PM
Soun Mixer absent in Runlevel 3 but present in Runlevel 5 debloxie SUSE / openSUSE 1 01-18-2006 09:15 AM
Xhost/xauth: Can I get access to the graphics console without anyone being logged in? Merlin53 Linux - General 10 01-07-2005 01:32 PM
limitations in access.conf does not aply under runlevel 5 zsoltrenyi Linux - Software 0 10-27-2004 11:44 AM
Can't ssh to server when server is in runlevel 5? begacjj Linux - Networking 11 06-26-2003 01:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 08:50 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