打印

我的proftpd安装后,用户无法登陆,提示密码不对!!

我的proftpd安装后,用户无法登陆,提示密码不对!!

我的系统solaris7
安装proftpd后,以inetd.conf的方式启动。运行也正常,就是系统用户连接不上。提示密码错误.匿名用户用ftp或anymous登录也提示密码错误!我靠!!
急死我了!!!请各位大侠帮忙!!我的配置文件基本是默认安装后的。如下:

# 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

ServerType                      inetd

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                            nobody
Group                           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.
<Anonymous ~ftp>;
  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>;

TOP

没有会的吗?斑竹帮忙呀!!!

TOP

你没有给你的proftpd配置Directory的吗?
比如<Directory /var/local/soft>;
       。。。。。。。。。。。。。。
     </Directory>;
以root身份建一个用户看看
useradd  -d  /var/local/soft -s /sbin/onlogin  用户名
再给它配密码拉
passwd 用户名
请输入密码!!!
再确认拉!

TOP

楼上的大哥!!
我把proftpd.conf文件按照你说的重新配置了一下。还是不行呀!!
<Directory /home>;
AllowOverwrite on
</Directory>;

我又建了一个用户,命令如下:
# useradd -d /home -s /bin/sh qqt
# passwd qqt
输入两次密码
# ftp localhost
Connected to localhost.
220 bbs FTP server ready
Name (localhost:bbsadmin): qqt
331 Password required for qqt.
Password:
530 Login incorrect.
Login failed.
ftp>; dir
530 Please login with USER and PASS
530 Please login with USER and PASS
ftp>;


还是不行,感觉是没和passwd文件关联上,具体怎么设置我也不知道呀!!还请指教!!

TOP

对了,我在安装的时候,出现如下提示。不知道是不是有错误。如下:
/usr/include/sys/termios.h:227: warning: `TAB0' redefined
/usr/include/sys/ioctl.h:80: warning: this is the location of the previous definition
/usr/include/sys/termios.h:228: warning: `TAB1' redefined
/usr/include/sys/ioctl.h:81: warning: this is the location of the previous definition
/usr/include/sys/termios.h:229: warning: `TAB2' redefined
/usr/include/sys/ioctl.h:82: warning: this is the location of the previous definition
/usr/include/sys/termios.h:234: warning: `XTABS' redefined
/usr/include/sys/ioctl.h:83: warning: this is the location of the previous definition
/usr/include/sys/termios.h:239: warning: `BS0' redefined
/usr/include/sys/ioctl.h:93: warning: this is the location of the previous definition
/usr/include/sys/termios.h:240: warning: `BS1' redefined

TOP

这个没什么问题
你用debug模式启动一下看看有没有问题

TOP

在<anonymous>;那块添上
AnonRequirePassword                off
RequireValidShell                off

TOP


感谢一直以来您对我们的支持!
当前时区 GMT+8, 现在时间是 2008-11-22 13:55 京ICP证060528 号

Designed By 17DST