Skip to main content

Step By Step Guide when a file input to a folder vsftpd automatically transmitted to another location how to configure

 To configure vsftpd to automatically transmit files from one folder to another location, you can use the following steps:


1. Install vsftpd if it is not already installed. You can use the following command to install it on Ubuntu:



2. Create a new user account for vsftpd. You can use the following command to create a new user with a home directory of /var/ftp:




3. Set the ownership of the /var/ftp directory to the vsftpd user:



4. Edit the vsftpd configuration file at /etc/vsftpd.conf and add the following lines at the end of the file:

Note: Replace <IP address of the FTP server> with the IP address of your FTP server.


5. Restart the vsftpd service to apply the changes:






6. Create a folder where the files will be uploaded to. For example, create a folder called /var/ftp/uploads:


7. Create a script that will be triggered whenever a new file is uploaded to the /var/ftp/uploads directory. For example, create a script called /usr/local/bin/upload.sh with the following contents:

Note: Replace /path/to/destination with the path to the directory where you want to send the files.




8. Make the script executable:

9. Add the following line to the end of the /etc/vsftpd.conf file to trigger the upload.sh script whenever a new file is uploaded:

Note: Replace /path/to/destination with the path to the directory where you want to send the files.




10.Restart the vsftpd service to apply the changes:

Now, whenever a file is uploaded to the /var/ftp/uploads directory, it will be automatically transmitted to the specified location.

Comments

Popular posts from this blog

Office 365: How to force users to change their password /O365

First we will see how to do it for one account then we will see how to do it for multiple accounts. 1. Install Prerequisites:       We will need MSOnline module to connect to Office 365 with PowerShell.         Open a PowerShell prompt with administrator rights : 2. Install MSOnline module :               It will Also install NuGet Provider , accept and yes to continue.   3.Connect to Office 365     Use Connect-MsolService  to open the Microsoft Office 365 sign in window :       Now a Pop Up windows will open For Microsoft Oath2 Security , Name and password of Administrative user or Global admin must be given here for making any changes.     4.Reset user password :           4A.Force new password :                        With this command we can set a password for a...

How to Reset Forgotten Password on Kali Linux

          Kali Linux is a Linux distribution used in the Cybersecurity domain. It is maintained and funded by Offensive Security. Kali Linux is Debian based and it uses the Debian repository for most of its packages. This Linux distribution is designed for digital forensics and penetration testing. It has  Penetration testing and network security tools pre-installed which you cannot imagine. It is completely free and open source. So you can use it for free and even contribute to its development.         Now forgetting login credentials is an annoying thing in the case of any operating system. Resetting forgotten passwords often comes with the risk of data loss and requires a lot of effort if you are not a technology enthusiast. This article will be a simple step-by-step guide on resetting forgotten passwords on Kali Linux. How to Reset Forgotten Password on Kali Linux?           In this section, we will ...

How to create a “Let’s Encrypt” certificate on Windows ,

  Cryptographic certificates are the digital equivalent of website validation, which enables you to encrypt connections using TLS protocol and thus provide a secure link between server and client. There are both paid and free certification centres. Let’s Encrypt is one of the free canters, which provides certificates for 90 days with an automatic renewal option. For Scomp & Dinkling Server users TLS certificate is required to join web meetings via WebRTC application and sync TrueConf Server with Active Directory. Table of Contents Step 1: Getting started. Step 2: Creating a certificate.     Step 1: Getting started. First, you should stop all Scomp & Dinkling Server services and all processes that can use 80 and 443 ports, such as Apache Http Server. To create a TLS certificate on Windows, download the ACME Simple (WACS) program. Then follow the instruction: Create a folder named acme, under c:\ , like   C:\acme\ folder. Extract the do...