1. Install ProFtpd server
user@localhost:~$ sudo apt-get install proftpd |
2. For security reasons, the ftp user shouldn't have direct access to the system. So, we associate "/bin/false" shell with the newly created user. For that, append "/bin/false" to /etc/shells file.
user@localhost:~$ sudo echo "/bin/false" >> /etc/shells |
3. Create ftp user, pointing user's shell to /bin/false.
user@localhost:~$ sudo useradd <ftp-username> -d <home-dir-path-ftp-user> -s /bin/false |
4. Set the password for created user.
user@localhost:~$ sudo passwd <ftp-username> |
5. Configure the proftpd.conf in accordance with your needs.
user@localhost:~$ sudo nano /etc/proftpd/proftpd.conf |
..............Done!!!
No comments:
Post a Comment