Create the user
sudo useradd -d /var/www/html/web_folder -M -s /sbin/nologin new_username
Add the user password
sudo passwd new_username
Add ownership to the folder
sudo chown -R new_username:new_username /var/www/html/web_folder
Add group ownership
sudo chgrp new_username /var/www/html/web_folder
Change all the directories to 755
sudo find web_folder -type d -exec chmod -R 755 {} \;
Change all the files to 644
sudo find web_folder -type f -exec chmod -R 644 {} \;
Add group permissions
sudo chmod g+rwx /var/www/html/web_folder
Make sure port 21 is enabled in the server firewall
1. Create a new site and enter a site name
2. Add the server IP address as the host
3. Leave the Protocol as FTP – File Transfer Protocol
4. Leave Logon Type as Normal
5. Enter the new username
6. Enter the password used above
Tags: FTP