1) Install proftpd using apt-get command
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install proftpd
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install proftpd
2) Add this line in /etc/shells file :
/bin/false
/bin/false
3) Create a /home/FTP-shared directory :
cd /home
sudo mkdir FTP-shared
cd /home
sudo mkdir FTP-shared
4) Create a user which will be used only for ftp access.
sudo useradd any_user_name -p your_password -d /home/FTP-shared -s /bin/false
sudo passwd userftp
5) Now we have to set the good permissions for these directories :
cd /home
sudo chmod 755 FTP-shared
6) Provide access of this directory to user
sudo useradd any_user_name -p your_password -d /home/FTP-shared -s /bin/false
sudo passwd userftp
5) Now we have to set the good permissions for these directories :
cd /home
sudo chmod 755 FTP-shared
6) Provide access of this directory to user
chown -R (FTPUSER) /(path)/(to_your_ftp)/
6) Restart proftpd service
sudo /etc/init.d/proftpd restart
sudo /etc/init.d/proftpd restart
No comments:
Post a Comment