The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
What prot is a process listening on? Le Badger UNIX for Dummies Questions & Answers 2 11-02-2007 06:39 AM
What are you listening to right now? Mars8082686 What's on Your Mind? 4 08-21-2006 11:05 PM
So... What are you listening to? hype.it What's on Your Mind? 33 03-31-2005 03:48 PM
Listening on port for incoming data? frustrated1 Shell Programming and Scripting 6 01-16-2004 03:48 PM
port not listening.. Prafulla IP Networking 1 12-12-2001 06:46 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-23-2002
Registered User
 

Join Date: Oct 2001
Location: Queens, NY
Posts: 12
TCP Listening Ports

Hello all,

Can someone instruct me on how to change the listening port for ftp ( or any tcp service) from 21 to another port number? Thanks in advance..

-AJ
Forum Sponsor
  #2  
Old 05-23-2002
Registered User
 

Join Date: Apr 2002
Location: Argentine - that better than to eat meat and to drink wine (both Argentineans)?.
Posts: 132
Do you have a /etc/services file?.

Regards. Hugo.
  #3  
Old 05-23-2002
Registered User
 

Join Date: Oct 2001
Location: Queens, NY
Posts: 12
Yes, i do...Am I suppose to change port number from this file?

-AJ
  #4  
Old 05-24-2002
LivinFree's Avatar
Goober Extraordinaire
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
Under most circumstances, I would not recomend changing anything in the /etc/services file.
You can if you want utilities like netstat to show the names, as opposed to the numbers of ports in use / listening, etc...

Find out where you ftp daemon is being started (statup script, inetd, somewhere else?). You should be able to change a command-line option there to change the default port.
Look at your ftpd man page for more info.

For example, on one of my systems, the man page tells me that I can specify the control and data ports with -p and -P

So if I changed a line in /etc/inetd.conf to:
ftpd -p 3040 -P 3039
It would run ftpd with a control port of 3040, and data port of 3039.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:46 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0