LinuxSir.cn,穿越时空的Linuxsir!

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

请问pureftpd的登录信息设置的问题

[复制链接]
发表于 2003-11-29 17:28:39 | 显示全部楼层 |阅读模式
我写了.banner了,但是原来的“欢迎来到Pureftpd”这样的怎么还在?如何去掉啊?
我现在的登录信息如下,banner那儿是banner的内容

<--- 220---------- 欢迎来到 Pure-FTPd ----------
<--- 220-您是第 2 个使用者,最多可达 10 个连接
<--- 220-<<
<--- 220-"An anthropologist at Tulane has just comeback from a field trip to New
<--- 220-Guinea with reports of a tribe so primitive that they have Tide but not
<--- 220-new Tide with lemon-fresh Borax."
<--- 220--- David Letterman
<--- 220->>
<--- 220-现在本地时间是 17:20。服务器端口: 21。
<--- 220-这个服务器支持FXP传输
<--- 220 在 3 分钟内没有活动,您被会断线。
<--- 230-您的带宽使用受限制
<--- 230-这里是banner!哇哈哈哈哈
<--- 230-banner!
<--- 230-banner!!
<--- 230-banner!!!
<--- 230-bannerrrrrr!!!!!!!!!!!!!!!!!!
<--- 230-
<--- 230 匿名使用者登录
cd 成功, 当前目录=/
发表于 2003-12-1 00:13:04 | 显示全部楼层

应该是在proftpd.conf中加上

DisplayLogin                        welcome.msg 这个是登录的提示的欢迎信息
  DisplayFirstChdir                .message 注:这是第一次切换回根目录时显示的信息。

如果有就不用加了,然后在每个用户的目录下建一个文件.message ,然后设置为可读的吧。

另外要也要建一个welcome.msg文件,复制到每个用户目录下。比如我的匿名访问的FTP是目录是/var/ftp,那我就应该把welcome.msg放到/var/ftp目录中,是不是这个意思呢

举列:

[root@linuxsir01 ftp]# pwd
/var/ftp

[root@linuxsir01 ftp]# ls -la
总用量 20
drwxr-xr-x    3 root     root         4096 12月  1 03:39 .
drwxr-xr-x   28 root     root         4096 11月 21 02:54 ..
-rw-r--r--    1 root     root          107 12月  1 03:39 .message
drwxr-xr-x    3 root     root         4096 12月  1 03:15 pub
-rw-r--r--    1 root     root           99 12月  1 03:28 welcome.msg
[root@linuxsir01 ftp]#


[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
331 Anonymous login ok, send your complete email address as your password.密码也是ftp
Password:验证ftp
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>

那.message有什么用呢,通过上面的ls -la命令,我们发现.message已经存在于/var/ftp目录中,要出现.message的信息。应该是这样的一个过程;

[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
331 Anonymous login ok, send your complete email address as your password.
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> cd pub
250 CWD command successful.
ftp> cd ..
250-================LinuxSir.Org==========
  
提示:您已经安全返回FTP目录的根目录
  

  
LinuxSir.Org 小组呈上
  
  
250 CWD command successful.
ftp>


您需要登录后才可以回帖 登录 | 注册

本版积分规则

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