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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-05-2003, 11:05 AM
|
#1
|
Member
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238
Rep:
|
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
|
|
|
12-05-2003, 11:38 AM
|
#2
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
Probably running from inetd. Check your inetd.conf file in /etc for a line to launch or use another FTP daemon, etc.
|
|
|
12-05-2003, 11:43 AM
|
#3
|
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032
Rep:
|
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
|
|
|
12-05-2003, 11:44 AM
|
#4
|
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032
Rep:
|
Damn, trickykid, you're so much faster than me.
Håkan
|
|
|
12-05-2003, 11:52 AM
|
#5
|
Member
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238
Original Poster
Rep:
|
If inetd is listening on port 21, how do I stop it? would this be done in the conf file mentioned by trickykid?
|
|
|
12-05-2003, 11:56 AM
|
#6
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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.
|
|
|
12-06-2003, 03:41 AM
|
#7
|
Member
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238
Original Poster
Rep:
|
I'm running VectorLinux, I've just added info to my signature so everyone can see
|
|
|
12-06-2003, 09:49 AM
|
#8
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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.
|
|
|
12-06-2003, 01:10 PM
|
#9
|
Member
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238
Original Poster
Rep:
|
I'll have a look, but I tried 'ps -e | grep ftp' and nothing showed up.
|
|
|
12-06-2003, 01:13 PM
|
#10
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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.
|
|
|
12-06-2003, 02:27 PM
|
#11
|
Member
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238
Original Poster
Rep:
|
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.
|
|
|
12-06-2003, 02:45 PM
|
#12
|
Member
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238
Original Poster
Rep:
|
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)...
|
|
|
12-07-2003, 06:22 AM
|
#13
|
Member
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238
Original Poster
Rep:
|
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?
|
|
|
12-07-2003, 10:46 AM
|
#14
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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 08:56 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|