This article is a mirror article of machine translation, please click here to jump to the original article.

View: 11122|Reply: 0

[FTP] vsftpd to add new users

[Copy link]
Posted on 1/11/2016 2:45:16 PM | | |

Add user dengftp, the user directory is specified as /var/www/, and this user cannot log in to the system.

#useradd Username –s /sbin/nologin –d /var/www/ dengftp
Note -s /sbin/nologin is to prevent it from logging in to the system, -d is to specify the user directory to /var/www/
#passwd dengftp This is the password I set dengftp
#chown –R dengftp:dengftp /var/www/
Note: Set all and belonging groups to the user directory and its subdirectories to dengftp

    # vim /etc/vsftpd/chroot_list  

Add dengftp to this file so that it is automatically located to the root directory when you open FTP
Then service vsftpd restart




Previous:8 ways to improve the performance of your ASP.NET Web API
Next:How to set up FTP under Linux
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com