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
All content in this blog is licensed under Creati...
step: 1. Create a new docker-compose.yml file in ...
Table of contents Problem Description Principle A...
The first time I installed MySQL on my virtual ma...
<br />Question: Why is it not recommended to...
The optimization created by MySQL is to add index...
Using ajax to implement form submission without re...
This article example shares the specific code of ...
1. Download docker online yum install -y epel-rel...
Preface DISTINCT is actually very similar to the ...
This tutorial shares the installation and configu...
Detailed explanation of MySQL stored procedures, ...
This article shares a sharing sidebar implemented...
Table of contents Importing JavaScript 1. Interna...
This tutorial shares the detailed steps of instal...