Wednesday, October 28, 2009

Assigning a banner to ftp server:

A part of the contents is displayed from the file /etc/ftpd/ftpacess

sendbuf 65536 real,guest,anonymous
# flush-wait no anonymous
# passive ports 0.0.0.0/0 32768 65535
# timeout data 600
# timeout idle 300

banner /etc/ftpd/banner.msg

(Output Truncated)

From the above, we can know the default connection time whilst data is transmitting through ftp
and the idle time too.

To assign a banner whilst ftp connection is establishing, do the following:
1. Create a file /etc/ftpd/banner.msg
2. Add the contents to the file


For Eg:
# vi /etc/ftpd/banner.msg
Hi, You are not authorized!!!
:wq!


Output:
bash-3.00# ftp localhost
ftp: connect to address ::1: Network is unreachable
Trying 127.0.0.1...
Connected to localhost.
220-Hi, You are not authorized!!!
220-
220 localhost FTP server ready.
Name (localhost:root):



Hooray!!! It work's!!!

No comments:

Post a Comment