Install FTP Server at Ubuntu with user FTP access
FTP is one of the Internet protocol of the earliest developed, and until now still used to download and upload computer files, namely between FTP client and FTP server. An FTP Client is an application that can issue FTP commands to an FTP server, while the FTP server is a daemon that runs on a computer that responds to commands from an FTP client. FTP commands can be used to change directories, change the transfer mode between binary and ASCII, upload and download files on FTP servers.
Actually, to install ftp server in ubuntu is not so difficult, here are the steps for installation in ubuntu ftp server .
Here the data for the ftp server I assume is as follows :
- ftp user: john and macdoni
- folder for the ftp server in /home/ftp with permissions read and write
First step is to download and install the package proftpd in ubuntu :
root@server:~# apt-get install proftpd
After doing the above command next step is to create user ftp, which is planned to be at the user create a john and mcdoni, which is later ftp users will have access to read and write. Here is the command to create the ftp user :
root@server:~# adduser john
root@server:~# adduser mcdoni
If the user ftp has been made so we then create the folder /home/ftp, where the folder /home/ftp is that we will create a default ftp access. the following steps:
root@server:~# mkdir /home/ftp
root@server:~# chmod 777 /home/ftp
Next we edit the file /etc/proftpd/proftpd.conf :
root@server:~# mv /etc/proftpd/proftpd.conf proftpd/proftpd.conf_original
root@server:~# vim /etc/proftpd/proftpd.conf
– Please enter the following script –
#
# /etc/proftpd/proftpd.conf — This is a basic ProFTPD configuration file.
# To really apply changes reload proftpd after modifications.
#
Include /etc/proftpd/modules.conf# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
UseIPv6 on# If set on you can experience a longer connection delay in many cases.
IdentLookups off
ServerName “Debian”
ServerType standalone
DeferWelcome off
MultilineRFC2228 on
DefaultServer on
ShowSymlinks on
TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200
DisplayLogin welcome.msg
DisplayChdir .message true
ListOptions “-l”
DenyFilter \*.*/
# Use this to jail all users in their homes
DefaultRoot /home/ftp
# Port 21 is the standard FTP port.
Port 21
# refresh any configured MasqueradeAddress directives every 8 hours# DynMasqRefresh 28800
MaxInstances 30
# Set the user and group that the server normally runs at.
User proftpd
Group nogroup
Umask 022 022AllowOverwrite on
TransferLog /var/log/proftpd/xferlog
SystemLog /var/log/proftpd/proftpd.log
QuotaEngine off
Ratios off
DelayEngine on
ControlsEngine off
ControlsMaxClients 2
ControlsLog /var/log/proftpd/controls.log
ControlsInterval 5
ControlsSocket /var/run/proftpd/proftpd.sock
AdminControlsEngine offUser john
Group nogroup
UserAlias anonymous ftp
DirFakeUser on ftp
DirFakeGroup on ftp
RequireValidShell off
MaxClients 10
DisplayLogin welcome.msg
DisplayChdir .messageAllowAll
User mcdoni
Group nogroup
UserAlias anonymous ftp
DirFakeUser on ftp
DirFakeGroup on ftp
RequireValidShell off
MaxClients 10
DisplayLogin welcome.msg
DisplayChdir .messageAllowAll
– Until here and please save it with: wq and hit enter –
Next we restart the ftp server daemon with the command :
root@server:~# /etc/init.d/proftpd restart
OK, finally ftp server is ready .
January 9th, 2012 at 6:28 pm
Check This Out…
[...]Here are some of the sites we recommend for our visitors[...]…