LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 870|回复: 10

proftp不能启动

[复制链接]
发表于 2004-2-9 21:28:43 | 显示全部楼层 |阅读模式
ports安装proftpd-1.2.8,# /usr/local/etc/rc.d/proftpd.sh start没有任何出错信息,也没有启动ftp服务,配置文件/usr/local/etc/proftpd.conf内容如下:

# To have more informations about Proftpd configuration
# look at : http://www.proftpd.org/
#
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use.  It establishes a single server
# and a single anonymous login.  It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.
                                                                                                               
ServerName                      "roFTPD Default Installation"
ServerType                      standalone
DefaultServer                   on
                                                                                                               
# Port 21 is the standard FTP port.
Port                            21
                                                                                                               
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask                           022
                                                                                                               
# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
MaxInstances                    30
                                                                                                               
# Set the user and group under which the server will run.
User                            ftp #nobody
Group                           ftp #nogroup
                                                                                                
# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
#DefaultRoot ~
                                                                                                
# Normally, we want files to be overwriteable.
<Directory />
  AllowOverwrite                on
</Directory>
                                                                                                
# A basic anonymous configuration, no upload directories.  If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
#########################################################################
#                                                                       #
# Uncomment lines w#                                                                       #
#########################################################################
<Anonymous /var/ftproot>
   User                         ftp
   Group                        ftp
                                                                                                
  ### We want clients to be able to login with "anonymous" as well as "ftp"
   UserAlias                    anonymous ftp
                                                                                                
  ### Limit the maximum number of anonymous logins
   MaxClients                   10
                                                                                                
  ### We want 'welcome.msg' displayed at login, and '.message' displayed
  ### in each newly chdired directory.
  # DisplayLogin                        welcome.msg
  # DisplayFirstChdir           .message
       ### Limit WRITE everywhere in the anonymous chroot
   <Limit WRITE>
     DenyAll
   </Limit>
</Anonymous>
发表于 2004-2-9 22:13:19 | 显示全部楼层
ServerType                        standalone
DefaultServer                        on
RequireValidShell                   off
AuthPAM                             off
AuthPAMConfig                       ftp

Port                                21

Umask                                022

MaxInstances                        10

User                                ftp
Group                                ftp

DefaultRoot ~

#<Directory />
#  AllowOverwrite                on
#</Directory>

<Anonymous ~ftp>
   User                                ftp
   Group                        ftp
  
   UserAlias                        anonymous ftp
     MaxClients                        50  
# Limit WRITE everywhere in the anonymous chroot

   <Limit WRITE>
     DenyAll
   </Limit>

   <Directory incoming/*>
      <Limit READ>
        DenyAll
      </Limit>
      <Limit WRITE>
        AllowAll
      </Limit>  
      <Limit STOR>
        AllowAll
      </Limit>
   </Directory>
</Anonymous>
 楼主| 发表于 2004-2-9 23:14:44 | 显示全部楼层
经过琢磨,发现是
User ftp
Group ftp
的错误,是用户不存在,而改成nobody之后,不能使用慝名登录了,手动建了ftp用户和组也不行,这个ftp用户和组应该怎么建立呢?
发表于 2004-2-10 08:25:42 | 显示全部楼层
我在单位的机子上也装了FreeBSD,装好后我告诉你全过程
发表于 2004-2-10 10:23:50 | 显示全部楼层

你可以

添加ftp用户,记得在shell的位置为/noexit,然后让他的属组为nobody,然后proftpd.conf里面这样:
user ftp
group nobody
发表于 2004-2-10 11:19:04 | 显示全部楼层
For 风:
我的FTP成功了。不过把自己也搞迷糊了。晕呀
你如果看到贴子,可以试试
ftp://221.194.217.85
 楼主| 发表于 2004-2-10 11:21:27 | 显示全部楼层
那个ftp用户是系统本来就有的,还是要自已手动建的?手动创建了ftp用户,启动服务服务时说ftp用户不存在!
发表于 2004-2-10 13:30:04 | 显示全部楼层
最新发现:不同机子通过ports装proftp建立的启动脚本不同。
我在单位装的就不能启动,所以我也下载了218主机的启动脚本。

另外:ftp用户是自已建的,装proftpd不会自动建立
 楼主| 发表于 2004-2-10 14:19:05 | 显示全部楼层
你的218的机器装的1.2.8吧,我装的是1.2.9,启动脚本是不一样的,1.2.9的脚本要改个地方才能启动,但我还是只能用nobody用户来启动服务,而且不能匿名登录。

能不能写一下建ftp用户的过程,我用adduser建立ftp用户,用它来启动proftpd服务,都是说ftp用户不存在,在/etc/passwd里可以看到ftp用户的存在。而且用rmuser ftp也说ftp用户不存在。
发表于 2004-2-10 16:33:10 | 显示全部楼层
我就用的218主机的启动脚本。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表