Preface vsftp is an easy-to-use and secure ftp server software. You can log in using a system user or a virtual user. If you log in using a system user, by default, the user can log in to the system. This means that you can log in to the ftp server and you can also log in to the system. This is sometimes unsafe because you can see many files when you log in to the system. Create a system account and only allow this account to log in to ftp First: Add /bin/false to the file /etc/bash cat /etc/shells /bin/sh /bin/bash /usr/bin/sh /usr/bin/bash /bin/false Second: Specify user (zhangsan) to use /bin/false usermod -s /bin/false zhangsan After two steps of setup, users can only use the FTP server and are prohibited from logging into the system. Remark
Possible causes If it was possible to use /sbin/nologin before and system users could only log in to ftp, then this is not possible in my current environment, which means that this is related to the system settings and vsftp configuration. Summarize The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. If you have any questions, you can leave a message to communicate. Thank you for your support for 123WORDPRESS.COM. You may also be interested in:
|
>>: Detailed usage of React.Children
Table of contents What is multi-environment confi...
Official website address: https://www.mysql.com/ ...
Anyone in need can refer to it. If you have tried...
1. Introduction When a web project is published o...
Preface For cost considerations, most webmasters ...
Table of contents 1. Communication between father...
When Docker creates a container, it uses the brid...
What are the benefits of learning HTML? 1: Easily...
I have seen a lot of MySQL-related syntax recentl...
Installed Docker V1.13.1 on centos7.3 using yum B...
Assuming business: View the salary information of...
The differences among execute, executeUpdate, and...
Zabbix deployment documentation After zabbix is ...
Table of contents Simple Factory Factory Method S...
The installation tutorial of mysql 8.0.11 winx64 ...