LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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

Reply
 
Search this Thread
Old 06-17-2003, 12:40 AM   #1
Tigger
Member
 
Registered: May 2003
Posts: 168

Rep: Reputation: 30
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
 
Old 06-17-2003, 01:16 AM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
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.
 
Old 06-17-2003, 01:30 AM   #3
Tigger
Member
 
Registered: May 2003
Posts: 168

Original Poster
Rep: Reputation: 30
ok, great

thanks heaps!!!

I love you crashed_again!!!!
 
Old 06-17-2003, 01:34 AM   #4
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Woohoo! Feel the love in the forums...

Cool
 
Old 06-17-2003, 06:59 PM   #5
Tigger
Member
 
Registered: May 2003
Posts: 168

Original Poster
Rep: Reputation: 30
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 !!!
 
Old 06-17-2003, 08:30 PM   #6
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
chkconfig is probably what you are looking for

Cool
 
Old 06-17-2003, 10:27 PM   #7
Tigger
Member
 
Registered: May 2003
Posts: 168

Original Poster
Rep: Reputation: 30
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?
 
Old 06-17-2003, 10:43 PM   #8
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Use your IPTables to close em if that's where your concern stems from

Cool
 
Old 06-17-2003, 10:45 PM   #9
Tigger
Member
 
Registered: May 2003
Posts: 168

Original Poster
Rep: Reputation: 30
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?
 
Old 06-17-2003, 11:20 PM   #10
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 55
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
 
Old 06-18-2003, 12:19 AM   #11
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 46
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 (:).
 
Old 06-18-2003, 01:13 AM   #12
Tigger
Member
 
Registered: May 2003
Posts: 168

Original Poster
Rep: Reputation: 30
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.
 
Old 06-18-2003, 01:37 AM   #13
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
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.
 
Old 06-18-2003, 02:14 AM   #14
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 46
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.
 
Old 06-18-2003, 02:41 AM   #15
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Assuming you don't use these apps, can you not simply remove them from your system?

Cool
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Xinetd michaelford Linux - General 7 04-18-2012 02:33 AM
xinetd - What is it? Palula Linux - Newbie 10 06-25-2007 06:51 AM
xinetd cootetom Suse/Novell 5 02-20-2005 04:58 AM
xinetd iftiuk Linux - Networking 2 04-20-2004 01:26 PM
Xinetd dead --xinetd dead but pid file exists hillxy Linux - General 1 04-15-2004 02:10 PM


All times are GMT -5. The time now is 11:46 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration