LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-15-2005, 10:10 AM   #1
tribalmasters
Member
 
Registered: Aug 2005
Location: England
Distribution: Fedora Core, SuSE and Ubuntu, 5.10 of course :-)
Posts: 104

Rep: Reputation: 15
Ubuntu won't FTP help!!


I upgraded to Ubuntu today and can't get the FTP server to work. ftp://loopback doesn't work so I can't get at my backup files and restore them :-(

I installed proftpd

sudo apt-get install proftpd

I selected it to start with inetd, I wasn't sure what that was and when I type sudo /etc/init.d/proftpd restart

it says
ProFTPd is started from inetd.

What is inetd and hoe do I fix it??

Please help!!!
 
Old 08-15-2005, 03:51 PM   #2
vimico
Member
 
Registered: Jan 2004
Distribution: Debian, Ubuntu
Posts: 118

Rep: Reputation: 15
First, the inetd question:

A server - in this case your FTP server - waits for connections from the outside world. Once connected, it does what it has to do, then the connection connection is closed again. This connection arrives at a specific port (e.g. 80 for web servers, 21 for ftp servers, etc.)

Someone has to check this port for incoming "calls". There are two ways to do that:

1) The (ftp) server can do it by itself (the so called daemon mode).
In order to do that, the server must be active and in memory all the time. If you have a lot of servers running, it can get crowded in your computer's memory.

If you do the init.d start/stop thing, you actually start the program, it stays in memory, waiting for customers... :-) or it gets terminated and removed, resp.

2) You let the super server inetd wake you, if someone calls.

In this case, inetd is watching the port. This setup saves you memory and CPU cycles, but might be a bit slower.


You can't have it both ways.


Now to the ftp server itself:

An ftp server without a configuration file will do nothing. There are a lot of things to configure, before it becomes useful. E.g. which directories to serve, you have to set-up the users for the ftp server, their permissions (what they are allowed to download/upload) etc.

I'm afraid, this is a lot of work. And if you only want to get some files of a computer, there might be faster ways to do that.
 
Old 08-15-2005, 03:52 PM   #3
kwlskwlguy
LQ Newbie
 
Registered: Apr 2004
Distribution: Slackware 10.1, SUSE 9.1 Pro, FreeBSD 5.4
Posts: 14

Rep: Reputation: 0
Welcome to Linuxquestions.org,

Speaking From personal experience, having used proftpd, wading thru docs, manpages, and forums; I would suggest first to either reinstall proftpd in standalone mode bypassing inetd altogether, or to try pure-ftpd instead. Inetd is a TCP/IP wrapper that listens on designated ports for incoming service requests. When it receives one it spawns the appropriate process, be it ftp http mail or other. Inetd just slows things down if you're not running a production server that may need to re-allocate the system's resources after the process is finished. But seriously, I've used proftpd, wu-ftpd, vsftpd, and pure-ftpd, and IMHO pure-ftpd is the easiest to configure. Granted the documentation is kinda sparse, but I've made ftp servers on Redhat, Fedora (redundant?), SuSE, and FreeBSD and pure-ftpd was the easiest (for myself) on all of them.
 
Old 08-15-2005, 04:47 PM   #4
tribalmasters
Member
 
Registered: Aug 2005
Location: England
Distribution: Fedora Core, SuSE and Ubuntu, 5.10 of course :-)
Posts: 104

Original Poster
Rep: Reputation: 15
OK :-) I got pure-ftpd by apt-getting it :-) now I am in /etc/ftpusers


and it looks like this
--
# /etc/ftpusers: list of users disallowed FTP access.
root
daemon
bin
sys
sync
games
man
lp
mail
news
uucp
proxy
majordom
postgres
www-data
backup
msql
operator
list
irc
nobody
--
Now I am assuming I need to remove someone from the list to get it working :-)
 
Old 08-15-2005, 05:55 PM   #5
tribalmasters
Member
 
Registered: Aug 2005
Location: England
Distribution: Fedora Core, SuSE and Ubuntu, 5.10 of course :-)
Posts: 104

Original Poster
Rep: Reputation: 15
Looks like something got left behind when I apt-get removed the old one

gcarlile@blackone:~$ sudo pure-ftpd -b
Password:
Unable to start a standalone server: Address already in use
gcarlile@blackone:~$

I think a reinstall is called for and try everything again!
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu / Ubuntu + KDE / Kubuntu | Which do you use? BuckRogers01 Ubuntu 60 07-08-2006 12:24 AM
XP doesn't recognize Ubuntu, Ubuntu installed first. MonkeyBusiness Linux - Newbie 9 06-21-2006 03:58 AM
FTP server very very slow in Ubuntu. duffmckagan Linux - Networking 0 06-28-2005 12:24 PM
Clean install from Ubuntu Warty to Ubuntu Hoary Erik_the_Red Linux - Newbie 2 06-05-2005 07:14 PM
FTP Server Up and running... how do I hide ftp users from local login screen? joe1031 Mandriva 2 03-18-2005 04:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 10:12 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
Open Source Consulting | Domain Registration