Ubuntu下安装ProFTPD小结

运维 系统运维
Ubuntu安装ProFTPD:ProFTPD是一个Unix平台上或是类Unix平台上的FTP服务器程序任何人只要遵守GPL版权声明,都可以随意修改源始码。本文讲述的就是Ubuntu下安装ProFTPD的过程总结。

  Ubuntu下安装ProFTPD小结:在Ubuntu Linux上安装了ProFTPD,总结了一下自己的安装过程。

  1. 配置运行ProFTPD的方法

  1.   ServerType inetd  
  2.  
  3.   # Set the user and group that the server normally runs at.  
  4.  
  5.   User nobody  
  6.  
  7.   Group nobody  
  8.  

  如果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才行。

  2. NIS认证

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

  1.   # Users require a valid shell listed in /etc/shells to login.  
  2.  
  3.   # Use this directive to release that constrain.  
  4.  
  5.   # RequireValidShells off  
  6.  

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

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

  还有一个很重要的设置,

  1.   # Uncomment this if you are using NIS or LDAP to retrieve passwords:  
  2.  
  3.   PersistentPasswd off  
  4.  

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

  3. 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。

  这样Ubuntu下安装ProFTPD小结就大功告成了,大家学习得如何呢?

【编辑推荐】

责任编辑:zhaolei 来源: CSDN
相关推荐

2011-03-03 14:47:35

2011-03-03 09:04:25

2011-03-03 14:47:35

2011-02-25 14:35:06

ubuntuproftp安装

2011-02-23 09:47:07

UbuntuProFTPdMySQL

2011-02-23 09:47:07

2011-03-08 17:04:10

ProFTPDUbuntu

2011-02-22 16:24:30

2011-03-03 13:32:07

Proftpd安装

2011-03-02 09:26:26

ubuntuproftpd

2011-02-25 15:38:12

ProftpdRedHat

2011-02-25 15:38:58

2011-02-25 15:55:25

unixProftpd

2011-03-08 10:10:37

Linuxproftpd

2011-02-22 09:50:01

2011-03-03 13:07:13

安装Proftpd

2011-02-25 09:44:51

怎样安装Proftpd

2009-06-03 16:54:00

Ubuntu安装eclEclipseUbuntu

2011-02-24 14:47:48

ProFTPD

2011-02-23 10:43:17

点赞
收藏

51CTO技术栈公众号