Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
06-17-2003, 01:40 AM
|
#1
|
Member
Registered: May 2003
Posts: 168
Rep:
|
xinetd.d
how do i edit this file? I am using red hat 8 server.
I want to edit this file so that i can disable some services such as echo and chargen.
Also what is the correct way of disabling these in the file? Can i just put a # in front of the service?
thanks again
|
|
|
06-17-2003, 02:16 AM
|
#2
|
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503
Rep:
|
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.
|
|
|
06-17-2003, 02:30 AM
|
#3
|
Member
Registered: May 2003
Posts: 168
Original Poster
Rep:
|
ok, great
thanks heaps!!!
I love you crashed_again!!!!
|
|
|
06-17-2003, 02:34 AM
|
#4
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Woohoo! Feel the love in the forums...
Cool
|
|
|
06-17-2003, 07:59 PM
|
#5
|
Member
Registered: May 2003
Posts: 168
Original Poster
Rep:
|
Booo whooooo!!!!
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.
Please help me !!!
|
|
|
06-17-2003, 09:30 PM
|
#6
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
chkconfig is probably what you are looking for
Cool
|
|
|
06-17-2003, 11:27 PM
|
#7
|
Member
Registered: May 2003
Posts: 168
Original Poster
Rep:
|
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?
|
|
|
06-17-2003, 11:43 PM
|
#8
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Use your IPTables to close em if that's where your concern stems from
Cool
|
|
|
06-17-2003, 11:45 PM
|
#9
|
Member
Registered: May 2003
Posts: 168
Original Poster
Rep:
|
ok, if i close them using iptables then even if they show up using languard it does not matter? Is this what you are saying?
I just do not understand where languard is getting them from?
|
|
|
06-18-2003, 12:20 AM
|
#10
|
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704
Rep:
|
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
|
|
|
06-18-2003, 01:19 AM
|
#11
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
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.
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 (:).
|
|
|
06-18-2003, 02:13 AM
|
#12
|
Member
Registered: May 2003
Posts: 168
Original Poster
Rep:
|
ok, neo - yes, i have done this but still languard shows they are open.
Moses - if the processes are starting as daemons, then what can i do about it? How can i stop them?
thanks again everyone
I love these groups!!! Everyone has been very helpful.
|
|
|
06-18-2003, 02:37 AM
|
#13
|
Senior Member
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120
Rep:
|
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.
|
|
|
06-18-2003, 03:14 AM
|
#14
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
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.
|
|
|
06-18-2003, 03:41 AM
|
#15
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Assuming you don't use these apps, can you not simply remove them from your system?
Cool
|
|
|
All times are GMT -5. The time now is 06:48 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|