|
发表于 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>
|
|