银河麒麟下安装ftp服务
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服务相关推荐
- 银河麒麟下安装sshd服务(联网)
目录 前言 一.sshd是什么? 二.使用步骤 1.检查 ssh 进程是否存在 2.安装客户端 3.安装服务端 4.重启 5. 修改端口 6.设置服务状态命令 总结 前言 银河麒麟下配置sshd服务方 ...
- Linux系统下安装FTP服务
Linux系统下安装FTP服务 1. 简介 2. 工作原理 3. FTP的安装与配置 1. 下载vsftp安装包 2. 检查是否已经安装了vsftp,后面会介绍怎样卸载 3. 安装vsftpd 4. ...
- Ubuntu麒麟下搭建FTP服务
一.怎么搭建FTP服务: 第一步>>更新库 linuxidc@linuxidc:~$ sudo apt-get update 第二步>>采用如下命令安装VSFTPD的包 lin ...
- Linux学习笔记010---CentOS7下安装FTP服务
JAVA技术交流QQ群:170933152 按照这个就可以 1.安装vsftp 1.1.安装vsftp,测试安装的vsftpd的版本是:vsftpd.x86_64 0:3.0.2-11.el7_2 y ...
- CentOS7下安装FTP服务
1.安装vsftp 1.1.安装vsftp,测试安装的vsftpd的版本是:vsftpd.x86_64 0:3.0.2-11.el7_2 yum -y install vsftpd 1.2.修改配置文 ...
- Ubuntu下安装FTP服务及使用(VSFTPD详细设置)(二)
vsftpd 作为一个主打安全的FTP服务器,有很多的选项设置.下面介绍了vsftpd的配置文件列表,而所有的配置都是基于vsftpd.conf这个配置文件 的.本文将提供完整的vsftpd.conf ...
- linux 6.3 ftp安装,CentOS6.3下安装VSFTP服务
centos下安装ftp服务器详细步骤: 第一步,检查服务器端是否已经安装ftp:[root@localhost centos]# rpm -q vsftpd 如果出现的是:[root@localho ...
- FC6下的ftp服务和telnet服务安装
费了几天的劲,终于把FC6下的ftp服务和telnet服务安装上了! 我是用的VMware 6下建的FC6, 1.启动ftp服务:,我是菜鸟,开始不知道FC6下带着ftp服务,于是疯狂的找rpm包,找 ...
- 银河麒麟Kylin_s10_sp3安装Oracle11g(FS)(官方补丁认证)(亲测有效)
银河麒麟Kylin_s10_sp3安装Oracle11g(FS)(官方补丁认证221018) 作者:shannon,微信号:shannon3730. 请尊重本人的劳动成果,转载请加作者信息. 2023 ...
最新文章
- RabbitMQ(二):RabbitMQ高级特性
- TCP校验和的设计与实现
- 前端笔记之NodeJS(三)Expressejs模板引擎请求识别
- 三十一、CI框架之使用验证码
- 全球及中国多非利特行业规模预测与前景运营模式分析报告2022-2027年版
- 代码审计之CVE-2018-7600-Drupal远程代码执行漏洞-Render API
- 494. 目标和 golang 动态规划
- 在linux下编译boost库【搜集】
- 【TensorFlow】 基于视频时序LSTM的行为动作识别
- 进不去系统,解决办法
- 关于android:layout_weight
- 简单的P2P电影下载加速,(类似迅雷下载电影P2P加速)
- AWG标准线径规格对照表 (2
- 五月天歌曲下载【专辑整理版】
- shark恒破解笔记5-VB之rtcMsgBox
- 静息态功能磁共振成像中的动态功能连接
- 主机防火墙与访问控制
- 3❤️Jenkins从零到壹❤️ :常用功能大全(JAVA 小虚竹)
- voyage java_Voyage:采用Java实现的基于netty轻量的高性能分布式RPC服务框架
- CSGO手套武器箱直接卖还是开了再卖?
热门文章
- protoc与protoc-gen-go安装
- 数据结构与算法——赫夫曼树基本实现
- java如果是晴天如果是男人_三、没有测光表时的曝光:“晴天 f/16”法则(转自 色影无忌)...
- 如何在Visual Studio中安装.net6.0 或者 将在Visual Studio中将.net 5.0更新为6.0
- AVFoundation学习记录
- 易基因|RRBS单碱基绘制580种动物的基因组规模DNA甲基化谱:Nature子刊
- python柱形图颜色_pyplot/matplotlib条形图,填充颜色取决于值
- 16光8电全千兆宽温工业交换机16千兆光8千兆网口机架式网管型工业级以太网交换机
- 各代iPhone iPad 内部代号
- 【小白目标检测】手把手教你做视频中的实时目标检测(基于Pelee算法)