ProFTPd的启动

运维 系统运维
ProFTPD是一个Unix平台上或者类Unix平台(如Linux, FreeBSD...)的FTP服务器程序,它是在自由软件基金会的版权声明下开发的、发布免费的软件,也就是说任何只要遵守自由软件基金会版权声明的人,全都可以随意修改源始码。本文主要说明的是ProFTPd的启动

一、配置运行ProFTPD的方法

  ServerType inetd

  # Set the user and group that the server normally runs at.

  User nobody

  Group nobody

  如果ServerType选择了inetd,/etc/init.d/proftpd start,就会报错,因为你选择了inetd运行。

  ProFTPd warning: cannot start neither in standalone nor in inetd/xinetd mode. Check your configuration.

  若要手动执行ProFTPD, 要把 ServerType 设成 standalone才行。

二、NIS认证

  /etc/nsswitch.conf 必须有nis服务

  # Users require a valid shell listed in /etc/shells to login.

  # Use this directive to release that constrain.

  # RequireValidShells off

  必须把NIS Sever传过来的shell信息/usr/local/bin/bash,放在/etc/shells列表才行,否则视为invalid shell。

  另外,也可以在/etc/passwd文件中的对应shell的那个field直接进行修改为/bin/bash,则忽略远端传过来的shell信息。

  还有一个很重要的设置,

  # Uncomment this if you are using NIS or LDAP to retrieve passwords:

  PersistentPasswd off

  PersistentPasswd 如果设置为on,就只检查/etc/passwd里面的user account,不要用uncomment,要用上述语句,切记!

三、xinet启动ProFTPD

  1.   # Set the user and group that the server normally runs at.  
  2.  
  3.   User root  
  4.  
  5.   Group root  
  6.  

  建立/etc/xinetd.d/proftpd,然后编辑如下内容。

  1.   service ftp  
  2.  
  3.   {  
  4.  
  5.   disable = no 
  6.  
  7.   flags =REUSE 
  8.  
  9.   socket_type = stream 
  10.  
  11.   wait = no 
  12.  
  13.   user = root 
  14.  
  15.   server = /usr/sbin/proftpd  
  16.  
  17.   server_args = -c /etc/proftpd/proftpd.conf  
  18.  
  19.   log_on_success += DURATION USERID  
  20.  
  21.   log_on_failure += USERID  
  22.  
  23.   }  
  24.  

  保存之后,chmod +x proftpd

  这样就成功了。

【编辑推荐】

  1. 如何配置proFTD
  2. 在CentOS系统安装配置proftpd
  3. ProFTPD mod_tls模块CA SSL证书验证漏洞
  4. Linux中建立安全的ProFTPD应用经验谈
  5. ProFTPD STAT命令远程拒绝服务攻击漏洞
  6. ProFTPD字符编码SQL注入漏洞
责任编辑:zhaolei 来源: 网络转载
相关推荐

2011-02-22 15:00:17

ProFTPD启动测试

2011-02-25 11:11:52

Proftpd脚本

2011-03-02 17:56:13

Xinetd启动Proftpd

2011-02-25 11:11:52

Proftpd脚本

2011-03-07 17:25:33

ProFTPD启动

2011-02-25 10:25:07

Proftpd

2011-03-08 11:21:55

proftpdxinetd

2011-02-22 14:50:53

ProFTPD

2011-02-24 15:51:14

Proftpd

2011-03-03 13:00:21

2011-02-22 10:08:46

ProFTPD配置

2011-03-02 17:42:09

Proftpd结构

2011-02-24 13:55:42

ProFTPD

2011-02-25 09:14:27

2011-03-03 15:02:22

proftpd权限

2011-03-08 11:13:52

proftpd结构

2011-02-25 16:39:34

proftpd配置文件

2011-02-25 13:23:19

Proftpd

2011-02-24 14:57:15

ProFTPD

2011-02-25 12:30:01

ProFtpd配置
点赞
收藏

51CTO技术栈公众号