LinuxQuestions.org
Register a domain and help support LQ
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 07-12-2010, 05:03 AM   #1
jgonsalves
LQ Newbie
 
Registered: May 2010
Posts: 8

Rep: Reputation: 0
FTP Server


I have a Fedora 11 box that serves as a FTP server that I have inherited, my problem is that I can’t find what process/program or daemon that’s hosting the FTP service or where it is configured

It doesn’t seem to be running any of the standard FTP servers the only ftp reference I have is a process that runs in the kernel called “nf_conntrack_ftp”

How can I find what application is hosting my FTP service?


Thanks
 
Old 07-12-2010, 05:15 AM   #2
xinyi.zhou
LQ Newbie
 
Registered: Mar 2010
Location: Shanghai,China
Posts: 4

Rep: Reputation: 1
if your ftp service is LISTENING TCP Port 21 (by default), i guess you can try this command:

#by root
lsof -nPi |grep 21
 
Old 07-12-2010, 05:20 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
netstat -plnt will hsow what process is listening on what port.
 
Old 07-12-2010, 05:56 AM   #4
jgonsalves
LQ Newbie
 
Registered: May 2010
Posts: 8

Original Poster
Rep: Reputation: 0
Java Tomcat

|Thanks Guys

it seems that Java is hosting the FTP server
tcp 0 0 :::8021 :::* LISTEN 1622/java


I know that the server is hosting java/Tomcat now just need to know where the configuration files are?
 
Old 07-12-2010, 06:26 AM   #5
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Hi,

It typically won't be a configuration file that you need to change - you'll find that the java application deployed on Tomcat has an FTP server embedded into it (using one of the Java FTP API's available) - thus you'll need to consider if you want to leave the application running or not? Or reverse engineer the application (if you have the source code).
 
1 members found this post helpful.
Old 07-12-2010, 09:43 AM   #6
jgonsalves
LQ Newbie
 
Registered: May 2010
Posts: 8

Original Poster
Rep: Reputation: 0
Ok thanks that's a great help,

I do have the source code and can now comfirm that the FTP server is running as part of the Java application. Ok so I am getting near to what my real problem is, the FTP service does not seem to be working in both active and passive modes after a reboot. it seems to reverts to using passive mode only wich is a problem for users using windows FTP command line for batch processing.

I know its probably a long shot but does anyone have any ideas? I think it may have something to do with running a kernal process.

thanks
 
Old 07-12-2010, 10:30 PM   #7
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,051

Rep: Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852
is there any possibility of runnng scp on that server ?
 
Old 07-13-2010, 03:26 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
Quote:
Originally Posted by schneidz View Post
is there any possibility of runnng scp on that server ?
Well he's running some form of java based integrated FTP service, why would a standalone SSHD instance be an acceptable replacement? it's not compatible with FTP at all.
 
Old 07-13-2010, 03:59 AM   #9
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Quote:

I know its probably a long shot but does anyone have any ideas? I think it may have something to do with running a kernal process.
More than likely you'll have to modify the code. Its been a while since I coded up FTP in Java; from what I can remember; depending on the API you're using; there's a parameter for setting Active/Passive FTP.

I suggest you do is Google something like "FTP Commons Java Mode" - alternately you could post the source here and I can try to help if I can.
 
Old 07-13-2010, 11:34 AM   #10
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,051

Rep: Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852
Quote:
Originally Posted by acid_kewpie View Post
Well he's running some form of java based integrated FTP service, why would a standalone SSHD instance be an acceptable replacement? it's not compatible with FTP at all.
my point was not to use the deprecated ftp service but instead use scp which is easier to implement as well as encrypted.

just a suggestion.
 
  


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
file transfer from one ftp server to another ftp server divyashree Linux - Newbie 7 02-24-2010 03:48 AM
In plesk , I wish to have a backup cron job, ftp back up file to another ftp server? muskiediver Linux - General 6 07-16-2009 04:13 AM
How to monitor web server, FTP server, Mail server and database server vodka33us Programming 1 06-16-2008 05:20 AM
files not visible in ftp site (but present in the /var/ftp/folder of the server) dongrila Linux - Newbie 2 12-23-2007 11:09 PM
FTP Server Up and running... how do I hide ftp users from local login screen? joe1031 Mandriva 2 03-18-2005 05:24 PM


All times are GMT -5. The time now is 09:56 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration