LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-05-2003, 11:05 AM   #1
fuelinjection
Member
 
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238

Rep: Reputation: 30
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
 
Old 12-05-2003, 11:38 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Probably running from inetd. Check your inetd.conf file in /etc for a line to launch or use another FTP daemon, etc.
 
Old 12-05-2003, 11:43 AM   #3
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
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
 
Old 12-05-2003, 11:44 AM   #4
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Damn, trickykid, you're so much faster than me.

Håkan
 
Old 12-05-2003, 11:52 AM   #5
fuelinjection
Member
 
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238

Original Poster
Rep: Reputation: 30
If inetd is listening on port 21, how do I stop it? would this be done in the conf file mentioned by trickykid?
 
Old 12-05-2003, 11:56 AM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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.
 
Old 12-06-2003, 03:41 AM   #7
fuelinjection
Member
 
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238

Original Poster
Rep: Reputation: 30
I'm running VectorLinux, I've just added info to my signature so everyone can see
 
Old 12-06-2003, 09:49 AM   #8
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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.
 
Old 12-06-2003, 01:10 PM   #9
fuelinjection
Member
 
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238

Original Poster
Rep: Reputation: 30
I'll have a look, but I tried 'ps -e | grep ftp' and nothing showed up.
 
Old 12-06-2003, 01:13 PM   #10
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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.
 
Old 12-06-2003, 02:27 PM   #11
fuelinjection
Member
 
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238

Original Poster
Rep: Reputation: 30
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.
 
Old 12-06-2003, 02:45 PM   #12
fuelinjection
Member
 
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238

Original Poster
Rep: Reputation: 30
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)...
 
Old 12-07-2003, 06:22 AM   #13
fuelinjection
Member
 
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238

Original Poster
Rep: Reputation: 30
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?
 
Old 12-07-2003, 10:46 AM   #14
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ftp from LInux to Serv-U ftp server problem csross Linux - General 2 11-07-2005 04:35 PM
FTP problem DataCorrupt Linux - Newbie 1 08-04-2005 11:06 AM
problem with ftp on mandrake 10.1 Official, ftp speeds system wide (anybody noticed?) equinox Mandriva 15 11-10-2004 02:07 PM
FTP problem kilogoretrout Linux - General 3 06-21-2003 11:37 PM
ftp problem robmcw Linux - Newbie 8 03-11-2003 07:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:55 AM.

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
Open Source Consulting | Domain Registration