How to understand vsftpd under ubuntu
This article will explain in detail how to understand vsftpd under ubuntu. The content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
Ftp user New and Authorization Control Directory
1.sudo mdkir / webapp/name/name
2.sudo adduser name1 and setting password
Add name1 after 3.sudo vi / etc/vsftpd.chroot_list
Add name1 after 4.sudo vi / etc/allowed_users
5.cd / etc/vsftpd_user_conf
6.sudo vi / etc/vsftpd_user_conf/name1
The content is specified for the parameters of the FTP user:
Local_root=/webapp/name
Write_enable=YES
Change 7.sudo vi / etc/passwd,shell to: / usr/sbin/nologin
8.sudo chmod a murw / webapp/name
9.sudo chown name1:root / webapp
That's fine. Mainly depends on directory permissions
Of course, if you always report wrong incorrect, you should pay attention to using adduser to create new users instead of useradd. Of course, I don't know the difference, but it is true that sometimes users who apply with useradd are not good..
On how to understand the vsftpd under ubuntu to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.