Servin' Up Files FTP Style

Next up is your ftp server. You've probably used ftp before. I'm not gonna go into what ftp is or why you might want an ftp server. We're just gonna set one up and let you figure out what you're gonna do with it.

First, we need to check and see if you already have your ftp server running. Type:

ftp localhost

If that doesn't work, we're gonna have to get things started for you. Open up /etc/inetd.conf and search for a line that looks like:

#ftp stream tcp nowait root /usr/sbin/tcpd proftpd

Remove the hash mark (#) and save the file. Now your ftp server should fire up when you reboot. Feeling a bit impatient? Try this.

ps ax

Take note of the number next to inetd. That's the pid, or process ID number. Now we are gonna restart inetd with the following command:

kill -HUP pid of inetd

You should be all set at this point. Just like with ssh, the users are the same users that you already have on your system. The only thing that we may want to do is add anonymous ftp. To do that, we need to edit one last file. Open up /etc/ftpusers. To make anonymous ftp work, you need to remove ftp from the list. While your in there, go ahead and add the names of any users you don't want using ftp.

We should be all set with ftp now

Valid HTML 4.01! Valid CSS!