Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to build a vsftpd server

Shulou Source: shulou.com Published: 2022-06-03 04:58:55 10月02日 Update

What this article shares with you is a detailed tutorial on how to build a vsftpd server. I believe most people don't know how to build it yet. In order to let you learn, I summarized the following contents. Without saying much, let's read on.

Take centos6 as an example

1.yum install-y vsftpd or download the rpm package offline, rpm-I

two。 Create an account for ftp login

Useradd ftpuser # create an account

Passwd ftpuser # set the password for the account

3. Create the directory where the ftp file is placed

Mkdir-p / data/ftp

Chmod otakw / data/ftp

4.vi / etc/vsftpd/vsftpd.conf

Anonymous_enable=YES / / allow anonymous login local_enable=YES / / allow local users to log in to write_enable=YES / / allow local users to have write permissions local_umask=022 / / set the backmask of file or directory permissions added by local users. Local_root=/data/ftp / / set ftp root directory / / after local users log in to FTP, you can change to another directory by default By setting chroot, restrict local users to the ftp root directory chroot_local_user=NO / / first prohibit all local users from executing chrootchroot_list_enable=YES / / activate the user list file for executing chroot chroot_list_file=/etc/vsftpd/chroot_list / / set the name of the user list file for executing chroot

5. Add the user used for ftp login to / etc/vsftpd/chroot_list

Vim / etc/vsftpd/chroot_list

Ftpuser

6. Restart vsftpd

Service vsftpd restart

After reading this article, have you learned how to build a vsftpd server? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Tags: Users logins files directories accounts servers services content more permissions root directories articles most passwords skills tutorials file names activation look industry Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Shulou Tech Info Shulou Technology Redmi Shulou Information