[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: X Security Issues? [SOLVED]



On Tue, Nov 19, 2002 at 09:35:36PM -0500, Edward Guldemond wrote:
> On Wed, Nov 20, 2002 at 02:47:13AM +0100, Olaf Dietsche wrote:
> > Well, it seems I should heed my own advice ;-). man xinit doesn't
> > mention xserverrc, maybe this is a debian thing. But it does mention
> > $HOME/.xserverrc; try to link or copy /etc/X11/xinit/xserverrc to your
> > home dir as .xserverrc and start xinit again.
> 
> Actually, I noticed something interesting when I was testing this out
> on my home box.  When I used "startx", X didn't listen on TCP.  When I
> used xinit, it did.  I guess that xerverrc only gets read when you use
> startx.
> 

 startx checks for the existance of files like xserverrc, and puts them on
xinit's command line if they exist.  xinit only looks for .files in ~, not
system-wide ones.

 XDM/KDM/GDM use the same xserverrc files as Debian's startx.  Debian's
xserverrc includes -nolisten tcp, so that it's in effect by default unless
you use a non-standard method of starting X.


> I don't know if this is a bug or feature, but it's interesting none
> the less.

 I think it's sub-optimal, but hard to fix without changing the expected
behaviour of some programs.  (Either making xinit look for xserverrc, or
making X symlink point to a script instead of the server (actually, to
Xwrapper, I think).)

 simple answer: just use startx or *DM unless you want to customize your
X-starting setup.

-- 
#define X(x,y) x##y
Peter Cordes ;  e-mail: X(peter@llama.nslug. , ns.ca)

"The gods confound the man who first found out how to distinguish the hours!
 Confound him, too, who in this place set up a sundial, to cut and hack
 my day so wretchedly into small pieces!" -- Plautus, 200 BC



Reply to: