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

由 Vel 在 11-29-2003 17:28 发表:

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

我写了.banner了,但是原来的“欢迎来到Pureftpd”这样的怎么还在?如何去掉啊?

我现在的登录信息如下,banner那儿是banner的内容

> quote: > > * * * > >
>
> <--- 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 成功, 当前目录=/
>
>
>
> > > * * *


All OS suck, GNU/Linux just sux less.


由 北南南北 在 12-01-2003 00:13 发表:


应该是在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.org]

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.org]

500 AUTH not understood

500 AUTH not understood

K

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus