CentOS 7: Install vsftpd

Install vsftpd

All commands should be run with ‘root’ user. Run the following command in terminal to install vsftpd package:

yum install vsftpd ftp -y

Configure vsftpd

Edit vsftpd configuration file /etc/vsftpd/vsftpd.conf,

vi /etc/vsftpd/vsftpd.conf

Find the following lines and make the changes as shown below:

 [...]
## Disable anonymous login ##
anonymous_enable=NO

## Uncomment ##
ascii_upload_enable=YES
ascii_download_enable=YES

## Uncomment - Enter your Welcome message - This is optional ##
ftpd_banner=Welcome to UNIXMEN FTP service.

## Add at the end of this  file ##
use_localtime=YES

Enable and start the vsftpd service:

systemctl enable vsftpd
systemctl start vsftpd

Firewall And SELinux Configuration

Allow the ftp service and port 21 via firewall.

firewall-cmd --permanent --add-port=21/tcp
firewall-cmd --permanent --add-service=ftp

Restart firewall:

firewall-cmd --reload

Then, update the SELinux boolean values for FTP service:

setsebool -P ftp_home_dir on

Create FTP users

By default, root user is not allowed to login to ftp server for security purpose. So, let us create a normal testing user called “sk” with password “centos”.

useradd sk
passwd sk

Connecting to FTP server

Now, try to connect to FTP server itself with user “sk”:

ftp 192.168.1.101

Enter the ftp user name and password.

Sample Output:

Connected to 192.168.1.101 (192.168.1.101).
220 Welcome to UNIXMEN FTP service.
Name (192.168.1.101:root): sk
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
时间: 2024-11-10 08:08:14

CentOS 7: Install vsftpd的相关文章

Install vsftpd on centos

安装vsftpd程序. sudo yum -y install vsftpd 启动ftp服务. sudo service vsftp start 添加ftp用户,并设置密码. sudo useradd -g ftp -s /sbin/nologin ftp-wwwsudo passwd ftp-www 建立ftp-www作为ftp根目录,同时建立子目录incoming作为上传目录.注意,vsftpd新版本要求根目录不能可写. sudo mkdir /var/ftp-www sudo mkdir

运维 | CentOS 7 安装 vsftpd

由于CentOS 7跟CentOS 6比有很大变化,所以有必要写下来备忘. 安装vsftpd: yum -y install vsftpd 编辑配置文件: vim /etc/vsftpd/vsftpd.conf (禁止匿名登录.使用本地用户登录.限制目录之类的) 启动vsftpd: systemctl start vsftpd.service 设置vsftpd开机启动: systemctl enable vsftpd.service 添加用户: useradd -d /data/wwwroot

WEB服务器搭建(centos+lnmp+svn+vsftpd)

一.LNMP 1.安装 wget -c http://soft.vpser.net/lnmp/lnmp1.1-full.tar.gz && tar zxf lnmp1.1-full.tar.gz && cd lnmp1.1-full && ./centos.sh 2.根据需求升级 ./upgrade_nginx.sh #nginx ./upgrade_php.sh #php ./upgrade_mysql.sh #mysql 二.SVN 1.安装 yum i

CentOS 7 安装vsftpd 服务器

在CentOS7上安装ftp服务器用于保存服务端上传的图片. 1.CentOS卸载vsftpd的方法 如果服务器上已经安装了vsftpd服务,配置出错需要卸载vsftpd服务. 1.1 查找vsftpd服务 [[email protected] /]# rpm -aq vsftpd 返回结果显示: vsftpd-3.0.2-21.el7.x86_64 #此处是查找vsftpd的返回结果 表示此服务期之前已经安装过vsftpd服务. 1.2 删除查找到的vsftpd服务 注:在卸载vsftpd之前

centos 6 安装vsftpd与PAM虚拟用户

使用yum 安装vsftp 1 yum install vsftpd pam pam-* db4 db4-* 创建一个保存用户及密码的文件 1 cd /etc/vsftpd/ 2 touch vuser_passwd.txt 添加用户(奇行用户,偶行密码) 1 vim vuser_passwd.txt 2 3 tom 4 DSfaoewLD3 5 ken 6 GetpOIIofd324DLJhg 将文本内的帐号及密码添加到db4的数据库文件内 1 db_load -T -t hash -f /e

CentOS After Install

1. Input Method: 1.1.用root登录 ,或su root 1.2.yum install "@Chinese Support" 1.3.exit 1.4.回到桌面,system->preferences->input method 1.5.如果没有,先注销一下. 1.6.到里面add输入法到列表里. 1.7.最后再注销.登录. CentOS After Install,布布扣,bubuko.com

centos source install

CentOS Kernel Source Install Mar 12th, 2012 | Comments CentOS kernel source install, first off if you are just trying to build something or compile a tool on CentOS then you probably only need to install the kernel-devel package if you are running a

centos下配置vsftpd

安装就直接yum了,没必要浪费这时间. yum install vsftpd 最简配置 anonymous_enable=YES/NO 控制是否允许匿名用户登入,YES 为允许匿名登入,NO 为不允许.默认值为YES,修改为NO 增加 设置允许的帐号列表 userlist_file=/etc/vsftpd/user_list 设置允许的帐号登录 userlist_deny=NO 在ftpuser里把允许的帐号去掉. 一般ftp目录不是home下,修改目录 vsftpd.conf中设置user_c

CentOS Linux Install Core Development

How do I install all developer tools such as GNU GCC C/C++ compilers, make and others, after installing CentOS from a shell prompt?you can following the nest line do ,install almost all development tools:Open termianl or login over ssh session and ty