LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   FTP Server (https://www.linuxquestions.org/questions/linux-newbie-8/ftp-server-819357/)

jgonsalves 07-12-2010 04:03 AM

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

xinyi.zhou 07-12-2010 04:15 AM

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

#by root
lsof -nPi |grep 21

acid_kewpie 07-12-2010 04:20 AM

netstat -plnt will hsow what process is listening on what port.

jgonsalves 07-12-2010 04:56 AM

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?

alli_yas 07-12-2010 05:26 AM

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).

jgonsalves 07-12-2010 08:43 AM

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

schneidz 07-12-2010 09:30 PM

is there any possibility of runnng scp on that server ?

acid_kewpie 07-13-2010 02:26 AM

Quote:

Originally Posted by schneidz (Post 4031423)
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.

alli_yas 07-13-2010 02:59 AM

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.

schneidz 07-13-2010 10:34 AM

Quote:

Originally Posted by acid_kewpie (Post 4031576)
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.


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