Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I need some help. I am running RH9 and wish to disable port 6000 (X). I've read through a ton of newsgroups and websites and no joy. I've done just about everything I can and am begging for help!
I've gone and modified my:
/etc/X11/gdm/gdm.conf "StandardXServer=/usr/X11R6/bin/X"
section and added the option -nolisten tcp. I have tried killing X but it respawns.
...in addition, I have edited the /etc/X11/xdm/Xservers by adding the -nolisten tcp after X .
Really at a loss here. I wish to run X if I need to be on the console but would prefer not to advertise port 6000.
Firewall off the port. Personanly I would deny all and allow a few - eg:
# Drop everything by default
iptables -P INPUT DROP
# Allow incomming ssh
iptables -A INPUT -p --dport 22 -j ACCEPT
# Allow incomming http
iptables -A INPUT -p --dport 80 -j ACCEPT
I went ahead and did a "init 3" and scanned the box and found the port 6000 disapeared and then port 111 took its place (interesting). Not sure why it did this for I'm not a super Linux guy but I went ahead and moved the /etc/rc3.d/S14portmap file (for when I reboot) and ran an /etc/init.d/portmap stop to stop the existing portmap service.
I am very greatful for Linux but there seems to be a ways to go on getting the word out on correctly configuring them. There are so many options that the RH Bible could never do it justice.
IMO though, there should be a simple config file that controls X.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.