1、首先使用离线源安装vsftp服务

apt install vsftpd

启动服务

service vsftpd startservice vsftpd stopservice vsftpd restart

2、创建ftp用户组和目录

创建FTP用户组ftp-users

groupadd ftp-users

创建用户组目录ftp-docs

mkdir /home/ftp-docs

修改权限

chmod 777 /home/ftp-docs

指定文件夹归属用户和用户组

chown root:ftp-users /home/ftp-docs

添加FTP用户并设置缺省目录

useradd –g ftp-users –d /home/ftp-docs XXXpasswd XXX

3、修改vsftpd.conf配置

# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
#
# Run standalone?  vsftpd can run either from an inetd or as a standalone
# daemon started from an initscript.
listen=NO
#
# This directive enables listening on IPv6 sockets. By default, listening
# on the IPv6 "any" address (::) will accept connections from both IPv6
# and IPv4 clients. It is not necessary to listen on *both* IPv4 and IPv6
# sockets. If you want that (perhaps because you want to listen on specific
# addresses) then you must run two copies of vsftpd with two configuration
# files.
listen_ipv6=YES
#
# Allow anonymous FTP? (Disabled by default).
anonymous_enable=YES
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
#local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# If enabled, vsftpd will display directory listings with the time
# in  your  local  time  zone.  The default is to display GMT. The
# times returned by the MDTM FTP command are also affected by this
# option.
use_localtime=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format.
# Note that the default log file location is /var/log/xferlog in this case.
#xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
# predicted this attack and has always been safe, reporting the size of the
# raw file.
# ASCII mangling is a horrible feature of the protocol.
ascii_upload_enable=YES
ascii_download_enable=YES
#
# You may fully customise the login banner string:
ftpd_banner=Welcome to blah FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd.banned_emails
#
# You may restrict local users to their home directories.  See the FAQ for
# the possible risks in this before using chroot_local_user or
# chroot_list_enable below.
#chroot_local_user=YES
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
# (Warning! chroot'ing can be very dangerous. If using chroot, make sure that
# the user does not have write access to the top level directory within the
# chroot)
#chroot_local_user=YES
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd.chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
#
# Customization
#
# Some of vsftpd's settings don't fit the filesystem layout by
# default.
#
# This option should be the name of a directory which is empty.  Also, the
# directory should not be writable by the ftp user. This directory is used
# as a secure chroot() jail at times vsftpd does not require filesystem
# access.
secure_chroot_dir=/var/run/vsftpd/empty
#
# This string is the name of the PAM service vsftpd will use.
pam_service_name=vsftpd
#
# This option specifies the location of the RSA certificate to use for SSL
# encrypted connections.
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
ssl_enable=NO# Uncomment this to indicate that vsftpd use a utf8 filesystem.
#utf8_filesystem=YES

4、确认用户和登录选项

查看/etc/ftpusers,确保账号不在该文件内

修改/etc/pam.d/vsftpd

最后重启vsftpd服务

service vsftpd stopservice vsftpd restart

修改selinux选项,改为disabled

使用ftp就可以进行连接

银河麒麟下安装ftp服务相关推荐

  1. 银河麒麟下安装sshd服务(联网)

    目录 前言 一.sshd是什么? 二.使用步骤 1.检查 ssh 进程是否存在 2.安装客户端 3.安装服务端 4.重启 5. 修改端口 6.设置服务状态命令 总结 前言 银河麒麟下配置sshd服务方 ...

  2. Linux系统下安装FTP服务

    Linux系统下安装FTP服务 1. 简介 2. 工作原理 3. FTP的安装与配置 1. 下载vsftp安装包 2. 检查是否已经安装了vsftp,后面会介绍怎样卸载 3. 安装vsftpd 4. ...

  3. Ubuntu麒麟下搭建FTP服务

    一.怎么搭建FTP服务: 第一步>>更新库 linuxidc@linuxidc:~$ sudo apt-get update 第二步>>采用如下命令安装VSFTPD的包 lin ...

  4. Linux学习笔记010---CentOS7下安装FTP服务

    JAVA技术交流QQ群:170933152 按照这个就可以 1.安装vsftp 1.1.安装vsftp,测试安装的vsftpd的版本是:vsftpd.x86_64 0:3.0.2-11.el7_2 y ...

  5. CentOS7下安装FTP服务

    1.安装vsftp 1.1.安装vsftp,测试安装的vsftpd的版本是:vsftpd.x86_64 0:3.0.2-11.el7_2 yum -y install vsftpd 1.2.修改配置文 ...

  6. Ubuntu下安装FTP服务及使用(VSFTPD详细设置)(二)

    vsftpd 作为一个主打安全的FTP服务器,有很多的选项设置.下面介绍了vsftpd的配置文件列表,而所有的配置都是基于vsftpd.conf这个配置文件 的.本文将提供完整的vsftpd.conf ...

  7. linux 6.3 ftp安装,CentOS6.3下安装VSFTP服务

    centos下安装ftp服务器详细步骤: 第一步,检查服务器端是否已经安装ftp:[root@localhost centos]# rpm -q vsftpd 如果出现的是:[root@localho ...

  8. FC6下的ftp服务和telnet服务安装

    费了几天的劲,终于把FC6下的ftp服务和telnet服务安装上了! 我是用的VMware 6下建的FC6, 1.启动ftp服务:,我是菜鸟,开始不知道FC6下带着ftp服务,于是疯狂的找rpm包,找 ...

  9. 银河麒麟Kylin_s10_sp3安装Oracle11g(FS)(官方补丁认证)(亲测有效)

    银河麒麟Kylin_s10_sp3安装Oracle11g(FS)(官方补丁认证221018) 作者:shannon,微信号:shannon3730. 请尊重本人的劳动成果,转载请加作者信息. 2023 ...

最新文章

  1. 讲讲 Redis 缓存更新一致性
  2. java生成sql语句_java生成SQL语句
  3. Problem 2238 Daxia Wzc's problem 1627 瞬间移动
  4. 作业1--求100内的奇数。
  5. 机器学习Sklearn实战——线性回归
  6. 我对香港数字生活的一些观察
  7. php js获取表单内容,jquery form表单获取内容以及绑定数据_javascript技巧
  8. php 获取今天数据,ThinkPHP 按日期获取今天获取本周获取本月获取今年数据
  9. springboot整合activemq加入会签,自动重发机制,持久化
  10. java 注释添加引用_java – 如何引用注释处理中的方法的实现?
  11. 数据结构与算法总结(八股文)
  12. spring中使用i18n(国际化)
  13. 饭后Android 第四餐-BRVAH(最好用的数据适配器)(BRVAH简介,使用方法,item的点击事件,列表加载动画,添加头部、尾部,自定义ViewHolder)
  14. LevelDB源码分析之十三:table
  15. EXCEL中数据分析涉及的一些操作
  16. java awt addMouseListener 双击事件
  17. Android——给button添加图片
  18. 台式计算机快捷键大全,电脑常用快捷键有哪些
  19. Java Vue uni-app 三端实现,滑动拼图验证码
  20. python计算学分绩点的程序_模拟登录教务系统计算GPA的小程序

热门文章

  1. mysql默认存储引擎_MySQL5.5 所支持的存储引擎
  2. 记一次腾讯TBS浏览服务集成实践
  3. 命题逻辑完备性定理证明
  4. 达人评测 i7 13700和i7 12700选哪个
  5. 小目标检测的相关挑战与问题
  6. 目标检测第5步-使用keras版YOLOv3训练
  7. VS Code折腾记 - (4) 常用必备插件推荐【前端】
  8. 把图片变成语音怎么弄?快来看看这篇文章
  9. Flash activex控件版本信息
  10. 腾讯云检测到你的服务器对其他服务器的攻击行为