Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-21-2003, 04:27 PM   #1
Registered: Aug 2003
Distribution: slackware 11, ubuntu 7.04
Posts: 165

Rep: Reputation: 30
nmap shows port 21 open, but no ftp service running ?

when i run nmap on my own machine, it says that port 21/tcp is open, but when i do ps -ax, it doesnt show any ftp services running.
any suggestions ?
Old 12-21-2003, 05:39 PM   #2
Registered: Jul 2003
Location: Europe
Posts: 198

Rep: Reputation: 30
What distro is it you are using? Try "ps -ef | grep ftp"
Old 12-21-2003, 06:32 PM   #3
Registered: Aug 2003
Distribution: slackware 11, ubuntu 7.04
Posts: 165

Original Poster
Rep: Reputation: 30
nm - im an idiot.
actually not, but i found out that inetd automatically starts proftp.
now, more questions:
i tried changing the Port to something other than 21, but it still listens on 21.
is there a way to restart inetd, or all the programs started by inetd ?
Old 12-21-2003, 08:16 PM   #4
Senior Member
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
running a port scan on yourself if not really the best way to do it. You need to run it remotely to see what is really open/closed/etc. And also if you run
netstat -nap
it will tell you what is listening on what ports.

To restart inetd depends on your distro

Slack: /etc/rc.d/rc.inetd restart

RH: cd /etc/init.d/
./<service_name> restart

Last edited by benjithegreat98; 12-21-2003 at 08:44 PM.


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
How do I start ftp service and check if port open? quintan Linux - Software 2 01-15-2018 02:02 AM
nmap reports port 21 (ftp) open - how to close it? shazam75 Linux - Security 3 09-23-2005 07:13 PM
SuSE 9.2 - FTP Port open with no FTP service?!?! don_wombat Linux - Security 12 12-01-2004 03:14 PM
strange service running ... open port Slackware 12 04-16-2004 05:42 PM
firewall.rc.config says :"open port 8080" but nmap says port is closed saavik Linux - Security 2 02-14-2002 12:16 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:35 PM.

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