vsftpd

centos中vsftpd配制

烈酒焚心 提交于 2019-12-30 08:25:23
1 增加组 groupadd ftpgroup 2 修改/etc/vsftpd.conf 将底下三行 #chroot_list_enable=YES # (default follows) #chroot_list_file=/etc/vsftpd.chroot_list 改为 chroot_list_enable=YES # (default follows) chroot_list_file=/etc/vsftpd/chroot_list 3 增加用户 useradd -g ftpgroup -d /dir/to -M ftpuser 4 设置用户口令 passwd ftpuser 5 编辑文件: /etc/vsftpd/chroot_list 内容为ftp用户名,每个用户占一行,如: peter john 6 重新启动vsftpd [root@home vsftpd]# /etc/init.d/vsftpd restart 去掉 anonymous_enable=YES open local_enable=YES open write_enable=YES chown -R appuser /data/rsync 来源: https://www.cnblogs.com/cerxp/archive/2009/10/27/1590634.html

linux搭建ftp配置文件

 ̄綄美尐妖づ 提交于 2019-12-30 07:49:11
# Example config file /etc/vsftpd/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. # # Allow anonymous FTP? (Beware - allowed by default if you comment this out). anonymous_enable=NO # # Uncomment this to allow local users to log in. # When SELinux is enforcing check for

linux vsftpd 服务配置

心不动则不痛 提交于 2019-12-30 07:47:40
vsftpd.conf配置如下: # Example config file /etc/vsftpd/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. # # Allow anonymous FTP? (Beware - allowed by default if you comment this out). anonymous_enable=NO # # Uncomment this to allow local users to log in. # When SELinux is

linux中配置ftp-vsftp

爷,独闯天下 提交于 2019-12-30 07:43:19
来源: http://hi.baidu.com/coolzdplinux/blog/item/83ece486621cfa3f67096e55.html linux中配置ftp-vsftp 以前一直都用windows系统,简单易懂. 现在突然使用linux服务器,而且主管要求不可以直接操作,因为今后它也是要进机房的,必须练习在远程用命令操作它.几天下来,从安装到配置把我这个新 手折磨的不行.其中配置ftp用的时间最长.做好以后仔细的总结一下变成文档,以备后患. 利用unix自带工具—vsftp,创建一个不允许匿名访问的ftp,实现上传下载文件的功能,并且指定名用户username可以登陆,限制访问人数。 1. 启动vsftpd # /etc/init.d/vsftpd start 2. 创建系统用户 # adduser username -d /home/username 给用户设置密码 # passwd username 3. 编辑/etc/vsftpd/vsftpd.conf文件 # vi /etc/vsftpd/vsftpd.conf # Allow anonymous FTP? anonymous_enable=NO # Uncomment this to allow local users to log in. local_enable=YES # Uncomment

Centos安装Vsftpd

假如想象 提交于 2019-12-30 07:38:44
目的: 只允许用户用ftp工具访问指定目录 查看是否安装了vsftpd rpm -qa|grep vsftpd 安装vsftpd yum -y install vsftpd (如果安装不成功,下载rpm包,手动安装) 编辑vsftpd的配置文件 vi /etc/vsftpd/vsftpd.conf 改成如下的内容,也可直接清空,然后复制进去: isten=YES background=YES anonymous_enable=NO local_enable=YES write_enable=YES local_umask=022 anon_upload_enable=NO anon_mkdir_write_enable=NO dirmessage_enable=YES xferlog_enable=YES connect_from_port_20=YES chown_uploads=NO xferlog_file=/var/log/vsftpd.log xferlog_std_format=YES async_abor_enable=YES ascii_upload_enable=YES ascii_download_enable=YES ftpd_banner=Welcome to hao32 FTP servers pam_service_name=vsftpd chroot

打通Fedora19的vsftpd服务

天涯浪子 提交于 2019-12-30 07:38:17
Fedora19默认vsftpd也没安,安装界面里也没地方让我选,这一点不如以前的版本人性化。没办法只有自己来了,倒也不费事。 1.下载vsftpd rpm安装包 我是从http://rpmfind.net/linux/rpm2html/search.php?query=vsftpd 下载的 vsftpd-3.0.2-7.fc21.i686.rpm 。 也可以直接从ftp://rpmfind.net/linux/fedora/linux/development/rawhide/i386/os/Packages/v/vsftpd-3.0.2-7.fc21.i686.rpm 下载。 也可以从 http://pan.baidu.com/s/15QqYY 下载。 这个版本是一个挺省事的版本。 2.安装vsftpd 使用以下命令,看vsftpd安没安,没有输出意味着没安。 [root@localhost hy]# rpm -qa|grep vsftpd 使用以下命令进行安装 [root@localhost hy]# rpm -ivh vsftpd-3.0.2-7.fc21.i686.rpm Preparing... ################################# [100%] Updating / installing... 1:vsftpd-3.0.2-7.fc21 #

centos7下 vsftpd初使用

冷暖自知 提交于 2019-12-30 07:29:06
一. 安装 1. 命令: yum -y install vsftpd 2. 创建一个用户专门用来登录vsftpd #在根目录下创建一个文件夹ftpfile mkdir ftpfile #创建用户ftpuser, 该用户主目录名为ftpfile -s为该用户所用的shell, 此处表示不登录,既没有ssh功能 useradd ftpuser -d /ftpfile -s /sbin/nologin # -R表示递归处理 用户名:用户组 该句意思是将ftpfile整个文件夹的拥有者改成ftpuser chown -R ftpuser:ftpuser /ftpfile/ #更改用户密码 passwd ftpuser 二. 修改配置 默认配置文件为/etc/vsftpd/vsftpd.conf, 也可以通过whereis vsftpd查找 在这个配置基础上进行修改,添加即可 # Example config file /etc/vsftpd/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

Ubuntu下搭建ftp服务器

时光怂恿深爱的人放手 提交于 2019-12-30 07:28:09
本文遵守 CC BY-SA 3.0 。 前言 :   最近项目需要搭建第三方文件服务器,本来使用的是apache服务器将需要的子项目的目录发布出来,然后通过软连接将所有子项目关联起来,但是如果不同时将所有子项目跑起来的话,未开启的项目目录就会丢失,着实蛋疼,所以才有搭建ftp服务器的想法,下面开始正文。 一、安装   如果是ubuntu环境下的话,安装是很简单的,只需输入如下命令:   安装 sudo apt-get install vsftpd   安装完成后可以察看下服务状态(其实安装完成了就会提示已经在跑了) sudo service vsftpd status 二、配置文件   其实我用到的文件只有三个   1. /etc/vsftp.conf(主配置文件)   2. /etc/vsftp.chroot_list(可访问用户列表,这个在我这里貌似不是已有的,我是手建的,这个察看上面那个配置文件就会发现,配置文件里面有关联)   3. /etc/pam.d/vsftpd(里面有个选项需要修改,这个需要简单配置一下,否则会出现“530 login incorrect”的错误)   下面开始逐个文件说明:   1./etc/vsftpd.config 里面的注释比较多,还很详细,这里就不一一列举了,只写上我修改的     anonymous_enable=NO(是否允许匿名登陆)

Linux FTP的安装与配置

一曲冷凌霜 提交于 2019-12-30 06:43:11
ftp安装部分,操作步骤如下: 可以使用yum命令直接安装ftp # yum install vsftpd ftp服务的开启与关闭命令: 开启:# service vsftpd start 关闭:# service vsftpd stop 安装成功后,可以在本地使用ftp软件连接,默认账号是虚拟机的账号和密码。 在linux中添加ftp用户,并设置相应的权限,操作步骤如下: 1、环境: ftp为vsftp 被限制用户名为test。被限制路径为/home/test 2、建用户:在root用户下: # useradd -d /home/test test //增加用户test,并制定test用户的主目录为/home/test # passwd test //为test设置密码 3、更改用户相应的权限设置: # usermod -s /sbin/nologin test //限定用户test不能telnet,只能ftp # usermod -s /sbin/bash test //用户test恢复正常 # usermod -d /test test //更改用户test的主目录为/test 4、限制用户只能访问/home/test,不能访问其他路径: 修改 # /etc/vsftpd/vsftpd.conf 如下: chroot_list_enable=YES //限制访问自身目录 #

Ubuntu vsftpd setup

风流意气都作罢 提交于 2019-12-30 05:16:21
简单的ubuntu下的ftp服务器架设介绍 1. 安装 vsftpd sudo apt-get install vsftpd 2. 更改配置文件 vsftpd.conf sudo vi /etc/vsftpd.conf 更新以下几项参数设置 anonymous_enable=NO # 阻止匿名登陆 seccomp_sandbox=NO # 新版本的vsftpd的sandbox不被支持会有 500 oops: child died 错误, 更多参数设置参考链接  http://wiki.ubuntu.org.cn/Vsftpd 。 sandbox设置参考 http://delightlylinux.wordpress.com/2013/12/18/fixing-the-vsftpd-500-child-died-error-in-xubuntu-13-10/ 3. 重启vsftpd让设置生效 sudo service vsftpd restart # 命令选项 包括 stop/start/restart 4. 测试登录 ftp localhost # localhost -> ip address or host name 根据提示输入用户及密码,即登录ubuntu系统的用户密码信息。 如果创建虚拟账户(指非系统登录用户)具体参考链接 http://blog.csdn.net