Skip to Content

Security Tip

Tw33Ty's picture

Tip of the week

StartX by default listens on port 6000, to see this you can type at a terminal:

netstat -an

This is not considered secure, or good linux practice to leave it listening for connections, since this can be exploited and leave you vulnerable. To close the connection, and make X a more secure place change to the directory where startx is at:

cd /usr/X11R6/bin/

With your editor open startx, and look for the following line:

serverargs=" "

Change the line now to reflect this:

serverargs="-nolisten tcp"

Be sure you don't forget to add the dash ---> - in front of 'nolisten tcp' Now save and close startx, log off Xwindows your desktop, and log back in, then run 'netstat -an' and you will now see that 6000 has been closed and is not there anymore

Comments

Alaa's picture

ma3lesh wrong place bardo

I know we're all learning this, and it will take us time to decide how things should work.

but stories should be used for news items only.

I'll try to write a document that explains the different node types soon.

also don't worry, the interface will change and will not remain as confuusing keda forever, this is just the default thing.

cheers, Alaa


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.


Dr. Radut | story