CentOS-Stream-10 搭建FTP服务器之系统用户访问

通过vsftp搭建ftp服务器。

1.安装vsftp。

bash 复制代码
yum install vsftpd -y
systemctl start vsftpd
systemctl enable vsftpd
systemctl status vsftpd

2.关掉selinux

3.防火墙开放ftp服务器。

bash 复制代码
firewall-cmd --add-service=ftp --permanent
firewall-cmd --reload

4./etc/vsftpd/vsftpd.conf为vsftp的配置目录。

bash 复制代码
vim /etc/vsftpd/vsftpd.conf

默认配置参数如下

bash 复制代码
anonymous_enable=NO   
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
listen=NO
listen_ipv6=YES
pam_service_name=vsftpd
userlist_enable=YES

5.创建系统账户。

bash 复制代码
useradd test
passwd test

6.目录和文件。系统用户的存放文件位置为用户的家目录。

bash 复制代码
cd /home/test/
touch test.txt

7.重启服务。

bash 复制代码
systemctl restart vsftpd

8.测试。

相关推荐
神梦流3 分钟前
GE 引擎的非标准数据流处理:稀疏张量与自定义算子在图优化中的语义保持
linux·运维·服务器
兜兜转转了多少年10 分钟前
从脚本到系统:2026 年 AI 代理驱动的 Shell 自动化
运维·人工智能·自动化
.小墨迹42 分钟前
apollo学习之借道超车的速度规划
linux·c++·学习·算法·ubuntu
Lsir10110_1 小时前
【Linux】中断 —— 操作系统的运行基石
linux·运维·嵌入式硬件
Sheffield1 小时前
command和shell模块到底区别在哪?
linux·云计算·ansible
历程里程碑1 小时前
Linux20 : IO
linux·c语言·开发语言·数据结构·c++·算法
郝学胜-神的一滴1 小时前
深入浅出:使用Linux系统函数构建高性能TCP服务器
linux·服务器·开发语言·网络·c++·tcp/ip·程序人生
承渊政道1 小时前
Linux系统学习【Linux系统的进度条实现、版本控制器git和调试器gdb介绍】
linux·开发语言·笔记·git·学习·gitee
技术路上的探险家1 小时前
Ubuntu下Docker与NVIDIA Container Toolkit完整安装教程(含国内源适配)
linux·ubuntu·docker
代码AC不AC1 小时前
【Linux】深入理解缓冲区
linux·缓冲区·标准错误