ubuntu创建FTP服务器。

来源:互联网 发布:怎么样让淘宝号升心快 编辑:程序博客网 时间:2024/05/18 03:21

使用vsftpd作为FTP服务器。


步骤:


1.安装FTP服务器

sudo apt-get install vsftpd

2.服务器启动、关闭、重启的操作:


service vsftpd start | stop | restart

3.创建一个用户,加入ftp用户组中。(ftp用户组是ftp服务器安装时候自动生成的)。假定已经存在有一个叫test的用户。

usermod -G ftp test
4.更改ftp服务器的配置文件: /etc/vsftpd.conf ,主要设置下面三个。

 

anonymous_enable=NO## Uncomment this to allow local users to log in.local_enable=YES## Uncomment this to enable any form of FTP write command.可以ftp写入。write_enable=YES





0 0
原创粉丝点击