安装Pure-ftpd

本文档详细介绍了在CentOS操作系统上安装Pure-ftpd的过程,包括添加用户、修改配置文件如PureDB和MinUID的设置,以及如何确保ForcePassiveIP设置为FTP主机IP。此外,还提示读者其他配置可以自行搜索完成。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  1. 操作系统
    centos
  2. 安装
yum install epel-release
yum install pure-ftpd
  1. 添加用户
# 创建系统用户
useradd ftp
# 更改所属主和所属组
chown -R ftp:ftp /home/ftp/
# 查看uid
id ftp
  1. 更改配置文件

PureDB 去掉注释
MinUID 要小于之前查看的uid值

  1. 创建用户
# 创建ftp用户,注意ftp用户是虚拟用户。
pure-pw useradd user -u ftp -d /home/ftp/
# 创建用户信息数据库文件
pure-pw mkdb
# 删除账号
# pure-pw userdel user
  1. 运行
pure-ftpd  /etc/pure-ftpd/pure-ftpd.conf

附配置文件

ForcePassiveIP ftp主机ip
其他配置请自行搜索


############################################################
#                                                          #
#             Configuration file for pure-ftpd             #
#                                                          #
############################################################

# If you want to run Pure-FTPd with this configuration
# instead of command-line options, please run the
# following command :
#
# /usr/sbin/pure-ftpd /etc/pure-ftpd/pure-ftpd.conf
#
# Online documentation:
# https://www.pureftpd.org/project/pure-ftpd/doc


# Restrict users to their home directory

ChrootEveryone               no



# If the previous option is set to "no", members of the following group
# won't be restricted. Others will be. If you don't want chroot()ing anyone,
# just comment out ChrootEveryone and TrustedGID.

# TrustedGID                   100



# Turn on compatibility hacks for broken clients

BrokenClientsCompatibility   no



# Maximum number of simultaneous users

MaxClientsNumber             50



# Run as a background process

Daemonize                    yes



# Maximum number of simultaneous clients with the same IP address
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值