![]() This will stop the vsftpd server and disable all FTP connections until you start it again. You can then manually start it using sudo systemctl start vsftpdĪnd stop it again when you're done using it sudo systemctl stop vsftpd This will prevent vsftpd from starting automatically on boot. This can be done with the following command: sudo systemctl disable vsftpd However, I would suggest disabling the vsftpd server when you are not using. Is it ROOT or is it the USER ID you've logged into. You can probably edit /etc/nf to fine-tune these permissions (I don't know it well enough to instruct you). One possible reason why you can connect locally, but not remotely, is due to which user VSFTPD is accessing the local user account under. ![]() ![]() Disabling the systemĪs a side-effect, the current setup also allows any system user to sign in via FTP using their username and password, which is a potential security risk. Now, you should be able to log in and modify files in /var/www/html by logging in using the username/password of the user you just created. Restart the vsftpd server to use the updated settings: sudo systemctl restart vsftpd Next, you will need to create a new user, setting the home directory to the your web root: sudo adduser ftpuser Be sure to disable it when not in use (see below). ⚠ Warning: This will allow any system user to sign in via FTP and use their username/and password to read and modify files. In your case, you'll have to update the config to allow users to log in to their home directories, by adding/uncommenting the following lines in /etc/nf: chroot_local_user=YES You can use vsftpd to set up a local FTP server.
0 Comments
Leave a Reply. |