|
发表于 2003-12-1 03:56:08
|
显示全部楼层
回复: proftpd-1.2.9 匿名访问不来?!!
最初由 happy2000mt 发表
看了精华帖子,设置一样,但是还是不能匿名访问,提示login失败```密码错误```
不太可能吧,哈哈,我今天刚把proftpd安装上,就能用了。只是设置的一个问题
要根据配制文件的提示来建一个用户nobody和一个组nogroup
[root@linuxsir01 ftp]# /usr/sbin/groupadd nogroup
[root@linuxsir01 ftp]# /usr/sbin/useradd nobody
useradd: user nobody exists
[root@linuxsir01 ftp]#
然后启动proftpd,进入proftpd守护进程所在的目录,执行,比如我把proftpd安装到了/opt/proftpd这个目录中,我就应该执行
[root@linuxsir01 ftp]# /opt/proftpd/sbin/proftpd
是不是启动了呢??
[root@linuxsir01 ftp]# ps -aux | grep proftpd
nobody 852 0.0 0.3 4036 1296 ? S 03:12 0:00 proftpd: (accepting connections)
root 1127 0.0 0.1 6324 652 pts/1 S 03:51 0:00 grep proftpd
然后用登入ftp来试一试。在字符模式下:
[root@linuxsir01 ftp]# pgrep proftpd
852
[root@linuxsir01 ftp]# ftp 192.168.0.1
Connected to 192.168.0.1.
220 ProFTPD 1.2.9 Server (ProFTPD Default Installation) [linuxsir01.linuxsir.cn]
500 AUTH not understood
500 AUTH not understood
KERBEROS_V4 rejected as an authentication type
Name (192.168.0.1:root): ftp 在这里输入ftp,匿名用户,在字符模式下用户名都是ftp,如果您没有特殊指定的话;
331 Anonymous login ok, send your complete email address as your password.密码也是ftp
Password:验证一次密码
230-欢迎来到LinuxSir.Org
希望您能把最好的软件发布到LinuxSir.Org的FTP上
多谢
LinuxSir.Org 小组呈上:
230 Anonymous access granted, restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
下面是配制文件
- # 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 "ProFTPD 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 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>
复制代码
|
|