当前位置:首页 >时尚 >Ubuntu下安装ProFTPD 下安ProFTP不仅配置方便

Ubuntu下安装ProFTPD 下安ProFTP不仅配置方便

2024-06-30 20:02:16 [百科] 来源:避面尹邢网

Ubuntu下安装ProFTPD

作者:佚名 运维 系统运维 Ubuntu下安装ProFTPD:proftpd(Professional FTP daemon),下安是针对Wu-FTP的弱项而开发的。除了改进其安全性,下安还有具备许多Wu-FTP所没有的下安特点。比如,下安能以Stand-alone、下安xinetd模式运行。下安ProFTP不仅配置方便,下安而且有MySQL模块,下安本文主要讲述的下安是Ubuntu下安装ProFTPD。

  今天在UbuntuLinux上安装了ProFTPD,下安遇到一些小麻烦,下安跟大家share一下。下安

  1. 配置运行ProFTPD的下安方法

Ubuntu下安装ProFTPD 下安ProFTP不仅配置方便

  ServerType inetd

Ubuntu下安装ProFTPD 下安ProFTP不仅配置方便

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

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

Ubuntu下安装ProFTPD 下安ProFTP不仅配置方便

  ProFTPd warning:

  1. cannot start neither in standalone nor in inetd/xinetd mode. Check your configuration.  
  2.  

  若要手动执行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

  Everything gonna be alright!!!

【编辑推荐】

  1. 用MySQL和Proftpd配置FTP服务器
  2. ProFTPD 下的五大问题
  3. Linux ProFTPd服务器配置(全)
  4. Ubuntu vsftpd服务安装设置
  5. ProFTPD的启动与测试
  6. ubuntu下proftp的编译、安装与测试
  7. ProFTPd的启动
  8. 在图形界面下控制ProFTPD
责任编辑:zhaolei 来源: CSDN网 ubuntuproftp安装

(责任编辑:综合)

    推荐文章
    热点阅读