udiniqgeek
Thinks about OS Linux Ubuntu | Ubuntu Tutorials
HOW TO MAKE MONEY by INTERNET
sfi

Install FTP Server in Ubuntu (proftpd) 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:~# aptitude update && aptitude 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
<IfModule mod_dynmasq.c>


# DynMasqRefresh 28800
</IfModule>
MaxInstances                    30

# Set the user and group that the server normally runs at.
User                            proftpd                                                                                                          
Group                           nogroup
Umask                           022  022

AllowOverwrite                  on

TransferLog /var/log/proftpd/xferlog
SystemLog   /var/log/proftpd/proftpd.log

<IfModule mod_quotatab.c>
QuotaEngine off
</IfModule>

<IfModule mod_ratio.c>
Ratios off
</IfModule>


<IfModule mod_delay.c>
DelayEngine on
</IfModule>

<IfModule mod_ctrls.c>
ControlsEngine        off
ControlsMaxClients    2
ControlsLog           /var/log/proftpd/controls.log
ControlsInterval      5
ControlsSocket        /var/run/proftpd/proftpd.sock
</IfModule>

<IfModule mod_ctrls_admin.c>
AdminControlsEngine off
</IfModule>

<Anonymous /home/ftp>
User john
Group nogroup
UserAlias anonymous ftp
DirFakeUser on ftp
DirFakeGroup on ftp
RequireValidShell off
MaxClients 10
DisplayLogin welcome.msg
DisplayChdir         .message
<Directory *>
<Limit WRITE>
AllowAll
</Limit>
</Directory>
</Anonymous>
                                
<Anonymous /home/ftp>
User mcdoni
Group nogroup
UserAlias anonymous ftp
DirFakeUser on ftp
DirFakeGroup on ftp
RequireValidShell off
MaxClients 10
DisplayLogin welcome.msg
DisplayChdir         .message
<Directory *>
<Limit WRITE>
AllowAll
</Limit>
</Directory>
</Anonymous>

-- 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 .


SITE ARCHIVE
udiniqgeek
Thinks about OS Linux Ubuntu | Ubuntu Tutorials
Copyright©2009 | UdiniqGeek.com - Thinks about OS Linux Ubuntu - Ubuntu Tutorials | Contact Us | :: RSS | [Valid RSS]