1/19/2024 0 Comments Create a secure ubuntu ftp serverName ( server_ip_address:root): developer Once logged in, you will receive the following output: ftp -p server_ip_address Now, execute the following command to log in with the developer user and password: ftp -p server_ip_addressĮnter the developer user and password. Once done, check the ufw status with the same command ufw status. mo GET YOUR VPS sudo ufw allow 20,21/tcp Test the FTP accessīefore testing the connection, we need to open some ports via the UFW service. Next is to add the developer user in the /etc/erlist touch /etc/erlist & echo "developer" | sudo tee -a /etc/erlist Step 5. Once these changes are made, save the file and restart the vsftpd service. Before we make any changes, it is recommended to have a copy of the file. The configuration of the VSFTPD is stored in the /etc/nf file. Now, when the user is created, we can proceed to configure the FTP access. chown nobody:nogroup /home/developer/ftp/ Once created, set the following permissions to the ftp folder. Now, we will create a directory called ftp inside the home directory of the developer user. cd /home/developer/ & ls -alĭrwxr-xr-x 2 developer developer 4096 Sep 19 21:27. The user developer is automatically created in the /home/developer directory. Ĭhanging the user information for developerĮnter the new value, or press ENTER for the default Ĭreating home directory `/home/developer'. ![]() sudo adduser developerĪdding new user `developer' (1001) with group `developer'. To do that, execute the following command: sudo adduser developerĮxecute the command, enter the password twice, hit Enter five times, and confirm the information with Y. Loaded: loaded (/lib/systemd/system/rvice enabled vendor preset: enabled)Īctive: active (running) since Mon 21:00:12 CEST 5min ago You should get the following output: sudo systemctl status rvice sudo systemctl start rvice & sudo systemctl enable rviceĬheck if the service is running properly. Once installed, start and enable the vsftpd. ![]() Install vsftpd daemonīefore we start with the configuration, we will install the VSFTPD daemon with the following commands: sudo apt install vsftpd sudo apt update -y & sudo apt upgrade -y Step 2. Update the system packages to the latest versions available.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |