Install Proftpd on Ubuntu
March 9, 2014
File Transfer Protocol (FTP) is a TCP protocol for uploading and downloading files between computers. There are two major ftp server can be install on ubuntu.
The main benefit of proftpd is that it has a very easily managed configuration file. The syntax of proftpd.conf is very similar to the Apache configuration file.
Proftpd is easily recognizable because of its modular architechture.
To install proftpd, you can type:
$ sudo apt-get install proftpd -- choose "standalone"
1. Add bin/false
$ sudo nano /etc/shells
add /bin/false
at the last line.
2. Add user userftp
as the name
$ sudo useradd userftp -d /var/www -s /bin/false
3. Create password for userftp
account
$ sudo passwd userftp
and type your password twice.
if you want this user can modify your files on www
folder, you need to change ownership to userftp
$ sudo chmod 755 /var/www $ sudo chown -R userftp:userftp /var/www