[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
howtos:security:basic_security [2012/10/07 10:22 (UTC)] – [Sources] htexmexhhowtos:security:basic_security [2012/10/07 10:23 (UTC)] – [X -nolisten tcp] htexmexh
Line 24: Line 24:
 By default, the Xorg server listens to port 6000 for remote connections. Sometimes you want remote connections, but if you don't, then disabling it is a good idea. By default, the Xorg server listens to port 6000 for remote connections. Sometimes you want remote connections, but if you don't, then disabling it is a good idea.
 The easiest way to do this is by creating this file at ''~/.xserverrc'' **OR** ''/etc/X11/xinit/xserverrc''. The easiest way to do this is by creating this file at ''~/.xserverrc'' **OR** ''/etc/X11/xinit/xserverrc''.
-<file bash>+<file bash xserverrc>
 #!/bin/sh #!/bin/sh
  
 exec /usr/bin/X -nolisten tcp exec /usr/bin/X -nolisten tcp
 </file> </file>
-You can specify more options to X in the same file if you need to.+You can specify more options to X in the same file if you need to.xserverrc
 ==== Check for open ports ==== ==== Check for open ports ====
 Some ways to check for open ports are: Some ways to check for open ports are:
 howtos:security:basic_security ()