Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10599 - Request: Disabling network in X (nolisten tcp).
Summary: Request: Disabling network in X (nolisten tcp).
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-11 15:36 UTC by Jacob Atzen
Modified: 2004-02-26 18:15 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jacob Atzen 2002-11-11 15:36:52 UTC
Hi,

I've got a little feature request: Make it possible to disable the Xfree server
listening on the network. As far as I can read from poking around the net this
is possible by starting X with "-nolisten tcp" but I haven't been able to find
anything about it being possible to configure it through XF86Config.

What I would like to see was some configuration file in /etc where this could be
configured so I won't have to start X with extra params everytime, and also
won't have to manually edit the startup scripts.

Perhaps it should even be made the default that X won't listen on the network.
It is somewhat of a security risk and for most users completely unnecessary.

Cheers,
- Jacob Atzen
Comment 1 synonymousca 2002-11-11 16:16:55 UTC
Assuming you start x with, well, startx, you can fix this with the following:

Edit startx, conveniently found with `which startx`
Change the line:
defaultserverargs=""

to:
defaultserverargs="-nolisten tcp"

---

I personally think this should be done by default, but oh well.

There's a way to do this for both kdm and gdm, if you use them, but I do not so
don't know it.
Comment 2 John Davis (zhen) (RETIRED) gentoo-dev 2003-09-21 16:39:06 UTC
That is correct - 
This really should be disabled as there is absolutely no need for it in a regular environment.

//zhen
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2003-09-22 00:14:50 UTC
Done. Sorry it took so long, but it's there.
Comment 4 SpanKY gentoo-dev 2004-02-26 18:15:55 UTC
*** Bug 42964 has been marked as a duplicate of this bug. ***