参考:https://blog.csdn.net/ate0168/article/details/109319432

添加test用户:

useradd  test -s /sbin/nologin //限定用户test不能telnet,不能ssh登录服务器,只能ftp。

passwd test

注意:vsftp默认会检查用户的shell,如果用户的shell没有在/etc/shells里,拒绝连接。vim /etc/shells,添加/sbin/nologin。

 

usermod -s /sbin/bash test //用户test恢复正常。

usermod -d /test test //更改用户test的主目录为/test

 chmod 777 /test 为test目录添加写权限

 

vsftp.comf配置如下:

anonymous_enable=no
local_enable=YES
write_enable=YES
local_umask=077
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
chroot_local_user=YES
chroot_list_enable=NO
chroot_list_file=/etc/vsftpd/chroot_list
allow_writeable_chroot=YES
#local_root=/data/video/
listen=no
listen_ipv6=YES
pam_service_name=vsftpd
userlist_enable=no
tcp_wrappers=YES

 

防火墙配置:

systemctl start firewalld
systemctl enable firewalld

firewall-cmd --permanent --add-port=21/tcp
firewall-cmd --reload

 能登录不能dir访问,参照链接:https://blog.csdn.net/jiesunliu3215/article/details/111320526

posted @ 2024-04-09 16:46 angelfzt 阅读(3) 评论(0) 推荐(0) 编辑
摘要: system-view进入系统模式: user-interface aux 0 authentication-mode password set authentication password simple xxxxxx 阅读全文
posted @ 2024-03-14 14:59 angelfzt 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 转:https://blog.csdn.net/weixin_68863715/article/details/129140250 1.配置用户,等级。 2.开启服务器,配置秘钥。 3.配置虚拟接口 阅读全文
posted @ 2024-03-14 14:49 angelfzt 阅读(47) 评论(0) 推荐(0) 编辑
摘要: minicom -s Serial port setup设置如下图: 阅读全文
posted @ 2024-03-12 17:12 angelfzt 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 1.下载raw:https://checkmk.com/download?method=cmk&edition=cre&version=2.2.0p20&platform=redhat&os=el7&type=cmk&subscribe=true&google_analytics_user_id= 阅读全文
posted @ 2024-01-29 18:00 angelfzt 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 转1:https://cloud.tencent.com/developer/article/1871789 转2:https://blog.csdn.net/weixin_45448056/article/details/106573160?ops_request_misc=%257B%2522r 阅读全文
posted @ 2024-01-17 15:13 angelfzt 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 转发地址:https://www.cnblogs.com/waw/p/16321917.html 1. 手动配置ipv6地址 1.修改配置文件,eth0换成自己的网口名称1 vim /etc/sysconfig/network-scripts/ifcfg-eth0 具体配置信息如下: TYPE=Et 阅读全文
posted @ 2023-02-22 10:08 angelfzt 阅读(1234) 评论(0) 推荐(0) 编辑
摘要: 原地址:https://blog.csdn.net/TzuHenry_AZ/article/details/121883604 1.准备环境:关闭防火墙、配好yum源、服务器配好IP、SElinux关闭。2.安装epel源:[root @solomon 11:49 ~ ]# yum install 阅读全文
posted @ 2023-02-07 09:57 angelfzt 阅读(596) 评论(0) 推荐(0) 编辑
摘要: 原文地址:https://blog.51cto.com/cuidehua/1763564 本文介绍 cobbler ,路径和配置文件都是完全默认的配置安装步骤1 准备测试环境虚拟机vmware nat模式cobbler 一键自动化安装系统_自动化VMware的NAT模式的dhcp服务也关闭,避免干扰 阅读全文
posted @ 2023-02-06 17:41 angelfzt 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 一、DNS简介 DNS(Domain Name System,域名系统),互联网上作为域名和IP地址相互映射的一个分布式数据库,能够使用户更方便的访问互联网,而不用去记住较难记住的IP地址。通过域名,最终得到该域名对应的IP地址的过程叫做域名解析(或主机名解析)。 DNS缓存服务器:DNS缓存服务器 阅读全文
posted @ 2022-01-05 15:35 angelfzt 阅读(453) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示