Solved

Disabling FTP in Unix

Posted on 2006-11-01
7
906 Views
Last Modified: 2013-12-04
We're trying to keep FTP from listening on our HP UX system.  We do this by commenting it out in services and in inetd, but after this happens we cannot establish a FTP (client) connection to another server.  Are we doing this right?  We want to be able to use FTP, but not have it listening on port 21.

Also, can anyone explain the difference between commenting out in services and commenting out in inetd.conf?
0
Comment
Question by:kryptotech
7 Comments
 
LVL 34

Assisted Solution

by:PsiCop
PsiCop earned 500 total points
ID: 17853441
Just comment it out in inetd. Leave it in /etc/services.
0
 
LVL 34

Accepted Solution

by:
PsiCop earned 500 total points
ID: 17853458
inetd.conf tells the inetd listening daemon what services are allowed. It is what listeds on port 21 and allows clients to connect to the FTP server.

/etc/services defines what ports are associated to what services, and is used by client and server software alike. However, it is merely an information source, it does not define running services.
0
 

Author Comment

by:kryptotech
ID: 17853514
Just to be clear, will FTP still say listening even if it's disabled in inetd?
0
Scale it in WD Gold

With up to ten times the workload capacity of desktop drives, WD Gold hard drives employ advanced technology to deliver among the best in reliability, capacity, power efficiency and performance.

 
LVL 38

Expert Comment

by:yuzh
ID: 17854654
>>will FTP still say listening even if it's disabled in inetd?

No!
after you edit the inetd.conf, you should restart inetd  or reboot the box.
0
 
LVL 34

Expert Comment

by:PsiCop
ID: 17858540
As yuzh says, changes to inetd.conf require that you restart the inetd daemon, or reboot the server, in order to be effective. I'm not familiar with HP-UX so I'll default to suggesting a reboot.

inetd.conf is only read upon inetd's initialization.
0
 
LVL 48

Expert Comment

by:Tintin
ID: 17862995
Just a side note about /etc/services.

Entries in /etc/inetd.conf refer to service names defined in /etc/services.  If you remove/comment the entry in /etc/services, it means the associated entry in /etc/inetd.conf won't work.
0
 
LVL 34

Expert Comment

by:PsiCop
ID: 17867024
Good point - another reason not to futz with /etc/services.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In today's information driven age, entrepreneurs have so many great tools and options at their disposal to help turn good ideas into a thriving business. With cloud-based online services, such as Amazon's Web Services (AWS) or Microsoft's Azure, bus…
In a recent article here at Experts Exchange (http://www.experts-exchange.com/articles/18880/PaperPort-14-in-Windows-10-A-First-Look.html), I discussed my nine-month sandbox testing of the Windows 10 Technical Preview, specifically with respect to r…
This video discusses moving either the default database or any database to a new volume.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now