Ubuntu安装ProFTPD安装小结

今天在Ubuntu Linux上安装了ProFTPD,遇到一些小麻烦,跟大家share一下。
1. 配置运行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才行。
 
2. 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,要用上述语句,切记!
 
3. xinet启动ProFTPD
   # Set the user and group that the server normally runs at.
   User                            root
   Group                           root
 
   建立/etc/xinetd.d/proftpd,然后编辑如下内容。
   service ftp
   {
    disable = no
       flags   =REUSE
       socket_type  = stream
       wait  = no
       user  = root
    server  = /usr/sbin/proftpd
      server_args  = -c /etc/proftpd/proftpd.conf
      log_on_success  += DURATION USERID
      log_on_failure  += USERID
   }
   保存之后,chmod +x proftpd
 
Everything gonna be alright!!!
 
Proftpd 是一款功能强大的开源 FTP 服务器软件,可以在多个操作系统上运行。尽管有一些操作系统提供了预编译的软件包,但某些情况下,您可能需要离线安装 Proftpd。下面是 Proftpd 离线安装的步骤: 1. 首先,您需要从 Proftpd 的官方网站下载源代码包。确保您下载了适用于您的操作系统的正确版本。 2. 将下载的源代码包解压缩到您想要安装 Proftpd 的目录中。您可以使用以下命令解压缩 tar.gz 文件: ``` tar -xzvf proftpd-x.x.x.tar.gz ``` 3. 进入解压缩后的目录: ``` cd proftpd-x.x.x ``` 4. 接下来,运行以下命令以配置安装过程: ``` ./configure ``` 这将检查您的系统并准备编译和安装所需的文件。 5. 配置完成后,运行以下命令开始编译 Proftpd: ``` make ``` 这个过程可能需要一些时间,具体取决于您的系统性能。 6. 编译完成后,使用以下命令将 Proftpd 安装到系统中: ``` make install ``` 确保您具有适当的权限来安装软件。 7. 安装完成后,您可以使用以下命令启动 Proftpd 服务: ``` service proftpd start ``` 或者,您可以使用其他设定的命令或脚本启动服务。 8. 要在系统启动时自动启动 Proftpd 服务,您可以将其添加到启动脚本或配置文件中,具体取决于您的操作系统。 这样,您就成功地完成了 Proftpd 的离线安装。请记住,离线安装可能需要处理一些依赖项和配置,具体取决于您的系统和环境。确保按照文档中提供的指导进行操作,并且您可以参考 Proftpd 的官方文档和支持社区获取更多信息和支持。
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值