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
Preface The mini program has a very convenient AP...
"What's wrong?" Unless you are accus...
This article example shares the specific code of ...
Table of contents Preface start Basic layout Data...
1. Grid layout (grid): It divides the web page in...
The ultimate way to solve the parsererror error o...
Application of HTML and CSS in Flash: I accidental...
Table of contents Previous words Synchronous and ...
introduce Usually a background server program mus...
Table of contents 1. Install ESXi 2. Set up ESXi ...
Table of contents 1. Why do we need unit testing?...
Parent File import React, { useState } from '...
1. Log in to MySQL and use SHOW VARIABLES LIKE ...
--Homepage backup 1.txt text 2. Scan the image 3. ...
Table of contents 1. Demand 2. Database Design 3....