Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
xinetd.d is a directory in /etc. To disable the services you edit the appropriate files in /etc/xinetd.d . For instance, the file /etc/xinietd.d/chargen will have a line that looks like this:
disable = no
You can change it to:
disable = yes
and then restart xinetd(/etc/init.d/xinetd restart) for the changes to take effect.
guess what? I got to the xinetd.d directory and yes there is a service for echo and chargen and both were set to disable.
However, i was also after the services such as tftp and RIP and SNMP but they were not in there!!!
Where else are these service files located on the machine? I run languard from the internet and it says i have got these ports open however, i cannot seem to find out where they are and how to disable them.
hi masterC, i have tried this (chkconfig) in the past but was not successful in finding tftp. I do not understand where languard is getting these ports open from?
You must restart xinetd after you made changes
/etc/rc.d/inet.d/xinetd reload
or
kill -SIGUSR1 `cat /var/run/xinetd.pid`
or the last resort is reboot but it is a preragative of another OS
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
These processes may be starting as daemons, not as subprocesses of xinetd. To check that, do:
Code:
ps auxww | grep tftp
etc.
tftp listens at port 69 by default, so as root, you can do a netstat and look for port 69.
Code:
netstat -lnp
will give you useful information about which ports are kept open by which processes. The ports show up under the local address column, after the colon (:).
Just a thought - if it is your external IP you are scanning with languard there's a chance it could be your ISP's proxy that it is showing having these ports open not your computer - is it the same for the internal IP?
I'd set my firewall to high, scan it again and if languard came up with the same results I'd start to doubt it or try nmap and see what that comes up with too.
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
Look in /etc/rc.d or /etc/init.d for starters. Anyway, there'll be startup scripts somewhere (most likely under /etc) and you can either chmod -x them or comment out the relevant parts of the scripts. . .
I don't know what distribution you are using, but it makes a difference to where the files are and how you stop programs from running.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.