Mailinglist Archive: opensuse-security (343 mails)

< Previous Next >
Re: [suse-security] Block port 6000
  • From: Markus Gaugusch <markus@xxxxxxxxxxxxxxxx>
  • Date: Wed, 11 Jul 2001 15:48:03 +0200 (CEST)
  • Message-id: <Pine.LNX.4.33.0107111544510.9196-100000@xxxxxxxxxxxxxxxxxx>
> I dont think that there is a way to keep X from listening on port 6000 (or
> some port) since it is a server running on your machine.
this is wrong, X can use unix sockets as well. it doesn't need tcp port
6000 for local connections. It is in /etc/.X11-unix/X0
if you don't use xdm, use
startx -nolisten tcp

or if you use xdm, edit /var/X11R6/lib/xdm/Xservers and add
-nolisten tcp to the line
:0 local /usr/X11R6/bin/X :0 vt07
(it looks like ":0 local /usr/X11R6/bin/X :0 vt07 -nolisten tcp"
afterwards)

Changes in Xservers do not affect sessions with startx !
(hopefully startx takes -nolisten tcp ... I didn't try. Maybe
"startx -- -nolisten tcp" works, if the other doesn't work)

greetings
Markus
--
_____________________________ /"\
Markus Gaugusch ICQ 11374583 \ / ASCII Ribbon Campaign
markus@xxxxxxxxxxxxxxxx X Against HTML Mail
/ \


< Previous Next >
Follow Ups
References