Default vsftpd Behaviors

The contents of a file named .message (if it exists in the current directory) are displayed when a user enters the directory. This feature is enabled in the installed configuration file, but disabled by the daemon. FTP users are also not allowed to perform recursive directory listings, which can help reduce bandwidth use.

The PASV data connection method is enabled to let external users know the IP address of the FTP server. This is a common problem when using FTP from behind a firewall/gateway using IP masquerading or when incoming data connections are disabled, because without passive mode the remote server tries to form a connection to your local host and gets blocked. For example, here is a connection to an FTP server (running ProFTPD), an attempt to view a directory listing, and the resulting need to use ftp's internal passive command:

Connected to gwyn.tux.org.

220 ProFTPD 1.2.5rc1 Server (ProFTPD on ftp.tux.org) [gwyn.tux.org] 500 AUTH not understood.

KERBEROS_V4 rejected as an authentication type Name (ftp.tux.org:gbush): gbush 331 Password required for gbush. Password:

230 User gbush logged in. Remote system type is UNIX. Using binary mode to transfer files. ftp> cd public_html

250 CWD command successful. ftp> ls

500 Illegal PORT command.

ftp: bind: Address already in use ftp>

ftp> pass Passive mode on. ftp> ls

227 Entering Passive Mode (204,86,112,12,187,89).

150 Opening ASCII mode data connection for file list

-rw-

r-

-r--

1

gbush

gbush

8470

Jan

10

2000

LinuxUnleashed.gif

-rw-

r-

-r--

1

gbush

gbush

4407

Oct

4

2001

RHU72ed.gif

-rw-

r-

-r--

1

gbush

gbush

6732

May

18

2000

SuSEUnleashed.jpg

-rw-

r-

-r--

1

gbush

gbush

6175

Jan

10

2000

TYSUSE.gif

-rw-

r-

-r--

1

gbush

gbush

3135

Jan

10

2000

TZones.gif

Was this article helpful?

0 0

Post a comment