标签:sftp umask com emc 记录 ops name rest rap
这篇博客简单记录了vsftp的安装,不涉及具体参数的解释说明
# cat /etc/redhat-release CentOS Linux release 7.5.1804 (Core) # getenforce Disabled # systemctl is-active firewalld.service unknown
# yum list |grep vsftp vsftpd.x86_64 3.0.2-25.el7 @base vsftpd-sysvinit.x86_64 3.0.2-25.el7 base # yum -y install vsftpd
# cd /etc/vsftpd/ # cat vsftpd.conf anonymous_enable=NO local_enable=YES write_enable=YES local_root=/data #这个目录需要相应的用户具有rwx权限 local_umask=022 dirmessage_enable=YES xferlog_enable=YES connect_from_port_20=YES xferlog_file=/var/log/xferlog xferlog_std_format=YES chroot_local_user=YES chroot_list_enable=YES chroot_list_file=/etc/vsftpd/chroot_list listen=YES pam_service_name=vsftpd userlist_file=/etc/vsftpd/user_list userlist_enable=YES userlist_deny=NO tcp_wrappers=YES allow_writeable_chroot=YES #没有这一行,有时会报错:500 OOPS: vsftpd: refusing to run with writable root inside chroot()
# cd /data # echo "welcome to my ftp\!">>.message # cd /etc/vsftpd/ # vim user_list root work
# useradd work # echo ‘123456‘|passwd --stdin work # touch /etc/vsftpd/chroot_list
# systemctl restart vsftpd.service
标签:sftp umask com emc 记录 ops name rest rap
原文地址:https://www.cnblogs.com/Go-Spurs-Go/p/10936390.html