Tag/tag.png

Content Cleanup Required
This article should be cleaned-up to follow the content standards in the Wiki Guide. More info...

How to setup an ftp server with three possible options. What am I talking about?

There are three different ways to set up an ftp server:

(1) * Anonymous FTP :

People can access the server only with the anonymous account and without a password. Of course, the server administrator will set a limit for uploads to prevent users from putting illegal files like pirated music/films/games.

(2) * FTP with both anonymous access and users with a passworded account:

This method lets both anonymous and passworded account users to enter the server. They will only have access to a specified directory, except for the user root who can view/modify/delete all files and/or folders.

(3) *FTP with mysql support for virtual users authentication :

This method allows access to the server only for some user groups that haven't got a virtual users authentication shell account on the system. It uses an external mysql server that stores user information.

First Option : Anonymous FTP

Before starting the creation of an anonymous ftp server, you have to add a user called ftp into your system, with a home directory too. This step is really easy, just follow these commands:

useradd -d /home/ftp -s /bin/false ftp
mkdir -p /home/ftp/upload

Doing this permits only this account to write in this folder. You can use more variables to specify what the ftp server will do. Here are some examples:

Second Option : '''Both anonymous and passworded account users'''

To make it possible to have both anonymous and passworded account users in the same server, follow this small guide :

Third Option : '''Virtual Users with Mysql'''

To create a server with mysql support follow this steps :

More options to add before launch the server process

Thats all.

See Also

FtpServer (last edited 2017-09-04 22:53:07 by ckimes)