LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   FTP Problem - Please help (https://www.linuxquestions.org/questions/linux-general-1/ftp-problem-please-help-122969/)

fuelinjection 12-05-2003 11:05 AM

FTP Problem - Please help
 
I am unable to run Proftp because it says there is there is already an ftp daemon running.

I have looked at the processes running and there is no ftp listed.

Someone has told me that linux has its own ftp built in, is this true? if so..
1) how do I use it
2) how do I stop it
3) how do I leave it running and run another ftp server?

Please someone help, I'm getting desperate

trickykid 12-05-2003 11:38 AM

Probably running from inetd. Check your inetd.conf file in /etc for a line to launch or use another FTP daemon, etc.

hw-tph 12-05-2003 11:43 AM

Try ps -e | grep ftp to see what FTP server you may have running. But the problem might be that inetd (or xinetd) is listening on port 21 in order to launch an FTP daemon upon connections to port 21. Did you try FTP'ing to yourself and see what happens?

Håkan

hw-tph 12-05-2003 11:44 AM

Damn, trickykid, you're so much faster than me. :)

Håkan

fuelinjection 12-05-2003 11:52 AM

If inetd is listening on port 21, how do I stop it? would this be done in the conf file mentioned by trickykid?

trickykid 12-05-2003 11:56 AM

Quote:

Originally posted by fuelinjection
If inetd is listening on port 21, how do I stop it? would this be done in the conf file mentioned by trickykid?
What distribution are you running as there could be several ways to stop|start|restart the inetd daemon. And yes, you comment the line in your inetd.conf file if you don't want FTP starting from this file and daemon and want it sort of standalone from it.

fuelinjection 12-06-2003 03:41 AM

I'm running VectorLinux, I've just added info to my signature so everyone can see

trickykid 12-06-2003 09:49 AM

Quote:

Originally posted by fuelinjection
I'm running VectorLinux, I've just added info to my signature so everyone can see
Vector is Slackware based so I'm sure its already got Proftpd running and launching from your inetd daemon.

I would suggest to keep things simple, keep your existing proftpd installation instead, all you have to do is configure it how you want as there will be a proftpd.conf file in your /etc and you can stop and start it using the inetd, etc.

You can most likely upgrade it using the tgz Slackware packages if you want to do that with ease, etc.

fuelinjection 12-06-2003 01:10 PM

I'll have a look, but I tried 'ps -e | grep ftp' and nothing showed up.

trickykid 12-06-2003 01:13 PM

Quote:

Originally posted by fuelinjection
I'll have a look, but I tried 'ps -e | grep ftp' and nothing showed up.
Like I said before, its being started using inetd. If your do a 'ps -aux | grep inetd' you should find that its running.

fuelinjection 12-06-2003 02:27 PM

How do I create a new user in proftp.

I assumed that it used existing linux users. but I've tried to ftp to the computer but it wont let me login.

fuelinjection 12-06-2003 02:45 PM

This is what my ftp client says

Connecting to (192.168.0.2) -> IP: 192.168.0.2 PORT: 21
Connected to (192.168.0.2) -> Time = 1322ms
Socket connected waiting for login sequence.
Cannot login waiting to retry (30s)...

fuelinjection 12-07-2003 06:22 AM

ok problem solved.

I edited the inetd.conf file in the /etc/ folder, and removed the line which specified to load ftp at boot.

Now when I run my own ftp executable, it works fine and I can connect to the server.

Anyonw know how I change the folder that an ftp user has access to?

trickykid 12-07-2003 10:46 AM

Quote:

Originally posted by fuelinjection
ok problem solved.

I edited the inetd.conf file in the /etc/ folder, and removed the line which specified to load ftp at boot.

Now when I run my own ftp executable, it works fine and I can connect to the server.

Anyonw know how I change the folder that an ftp user has access to?

By default its their home directory, so change that. If you don't want them to be able to browse your whole directory tree, look into chroot to jail them to their home directory.

Also if you don't want to give them an actual shell access, make their shell as something like /bin/false and add that shell to your /etc/shells file.


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