安装proftpd
$sudo apt-get install proftpd
新建一个ftp用户,指定用户主目录为/home/ftpuser
$sudo useradd ftpuser -p userpasswd -d /home/ftpuser -s /bin/false 创建一个只能用来读取ftp的用户ftpuser. 这个用户不需要有效的shell(更安全) ,所以选择 /bin/false shell 给 ftpuser
启动/停止/重启动你的服务:
Code:
sudo /etc/init.d/proftpd start
sudo /etc/init.d/proftpd stop
sudo /etc/init.d/proftpd restart
对你的proftpd进行一下语法检查:
Code:
sudo proftpd -td5
想知道谁现在连接到你的服务,用ftptop命令(使用字母”t”来转换显示频率),你也可以使用”ftpwho”命令.
在进入proftpd的配置文件:我的文件在/etc/proftpd/proftpd.conf 内容如下:
# /etc/proftpd/proftpd.conf — This is a basic ProFTPD configuration file.
# To really apply changes reload proftpd after modifications.
# Includes DSO modules
Include /etc/proftpd/modules.conf
UserAlias xueok ftpuser
ServerName […]
$sudo apt-get install proftpd
新建一个ftp用户,指定用户主目录为/home/ftpuser
$sudo useradd ftpuser -p userpasswd -d /home/ftpuser -s /bin/false 创建一个只能用来读取ftp的用户ftpuser. 这个用户不需要有效的shell(更安全) ,所以选择 /bin/false shell 给 ftpuser
启动/停止/重启动你的服务:
Code:
sudo /etc/init.d/proftpd start
sudo /etc/init.d/proftpd stop
sudo /etc/init.d/proftpd restart
对你的proftpd进行一下语法检查:
Code:
sudo proftpd -td5
想知道谁现在连接到你的服务,用ftptop命令(使用字母”t”来转换显示频率),你也可以使用”ftpwho”命令.
在进入proftpd的配置文件:我的文件在/etc/proftpd/proftpd.conf 内容如下:
# /etc/proftpd/proftpd.conf — This is a basic ProFTPD configuration file.
# To really apply changes reload proftpd after modifications.
# Includes DSO modules
Include /etc/proftpd/modules.conf
UserAlias xueok ftpuser
ServerName […]