#Neorouter firewall ports how toWe’ve shown you how to install and configure a secure and fast FTP server on your Ubuntu 20.04 system. You can use the same command to change the shell of all users you want to give only FTP access. Run the following commands to create the /bin/ftponly file and make it executable: echo -e '#!/bin/sh\necho "This account is limited to FTP access only."' | sudo tee -a /bin/ftponly sudo chmod a x /bin/ftponlyĪppend the new shell to the list of valid shells in the /etc/shells file: echo "/bin/ftponly" | sudo tee -a /etc/shellsĬhange the user shell to /bin/ftponly: sudo usermod newftpuser -s /bin/ftponly To disable shell access, create a new shell that will print a message telling the user that their account is limited to FTP access only. You should be able to connect to the server using any FTP client that can be configured to use TLS encryption, such as FileZillaīy default, when creating a user, if not explicitly specified, the user will have SSH access to the server. : sudo mkdir -p /home/newftpuser/ftp/upload sudo chmod 550 /home/newftpuser/ftp sudo chmod 750 /home/newftpuser/ftp/upload sudo chown -R newftpuser: /home/newftpuser/ftpĪs discussed in the previous section, the user will be able to upload its files to the ftp/upload directory.Īt this point, your FTP server is fully functional.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |