Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install and set up a CentOS vsftp system account

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Today, I will talk to you about how to install and establish a CentOS vsftp system account, many people may not know much about it. In order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.

CentOS vsftp installation:

1. Install CentOS Vsftpd service related parts:

[root@KcentOS5 ~] # yum install vsftpd*

two。 Confirm the installation of PAM service related parts:

[root@KcentOS5 ~] # yum install pam*

Development package, in fact, it does not matter, the main purpose is to confirm the PAM.

3. Install the DB4 part package:

Here is a special installation of a db4 package to support the file database.

[root@KcentOS5 ~] # yum install db4*

CentOS vsftp system account

1. Establish the host user of the CentOS vsftp service:

[root@CentOS5 /] # chmod 700 / home/vftpsite

[root@KcentOS5] # useradd vsftpd-s / sbin/nologin

The default Vsftpd service host user is root, but this does not meet the security needs. Here we create a user named vsftpd and use him as the service host user that supports Vsftpd. Since the user is only used to support Vsftpd services, it is not necessary to allow him to log in to the system, and set him as a user who cannot log in to the system. [root@CentOS5 /] # useradd-d / home/vftpsite-s / sbin/nologin vftpuser

two。 Establish a CentOS vsftp virtual hosting user:

[root@KcentOS5 nowhere] # useradd overlord-s / sbin/nologin

This article mainly introduces the virtual users of Vsftp, virtual users are not system users, that is to say, these FTP users do not exist in the system. In fact, their overall authority is concentrated on a certain user in the system, the so-called Vsftpd virtual host user is such a host user who supports all virtual users. Because he supports all the virtual users of FTP, then his own permissions will affect these virtual users, therefore, in the consideration of security, we should also pay attention to the control of the rights of this user, and there is absolutely no need for this user to log in to the system, and he is also set here as a user who cannot log in to the system.

(insert a sentence here: originally in the establishment of the above two users, even the user's home path is not intended to be given. I wanted to add-d / home/nowhere, according to the man useradd manual.

Stated: "- d,-- home HOME_DIR

The new user will be created using HOME_DIR as the value for the

User flowers login directory. The default is to append the LOGIN name to

BASE_DIR and use that as the login directory name. The directory

HOME_DIR does not have to exist but will not be created if it is

Missing.

Use the-d parameter to specify the user's home directory, which is not required. If the specified directory does not exist, it will not be created. As a result, when I tried-d / home/nowhere to specify a directory that does not exist, I KAO! actually created a new = for myself.)

After reading the above, do you have any further understanding of how to install and set up a CentOS vsftp system account? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report