Question : OpenSolaris in.ftpd Binary Connection Fail

I am having a strange issue with the built in ftp server for OpenSolaris.  I am running OpenSolaris 2009.6.  

I am attempting to setup an ftp server on my OpenSolaris box.  Configuration was no small task to learn from scratch, although I have very little experience configuring any nix ftpd's.  However, I believe I have the configuration figured out.  Permissions are set appropriately and I have the users chrooted to the desired location.  I have been able to successfully connect, download and upload files and even chmod through an ftp client.  However, and it's an important however...

I cannot download files in binary mode.  I can upload files in binary mode.  I can download / upload files in ascii mode.  Passive / Active makes no difference.

I am connecting to the ftp server over the local network so no routers/firewalls are involved.  I have the built-in firewall on the client system (tried with a vista box and a server 2003 box) disabled and no other software firewalls exist on the client systems.  ipf.conf on the server is essentially empty.  I even once tried with the IP Filter Service disabled on the server.  I do not know enough to be sure there are no other firewalls in place on the solaris box but the server is essentially a fresh install and I have never knowingly installed any proprietary firewalls.

I have pasted a log from the filezilla client.  You'll see 3 instances of Error: Connection closed by server.  These happen almost instantly.  

Another weird thing is you'll notice in the log:

Command:      LIST
Response:      150 Opening BINARY mode data connection for /bin/ls.
Response:      226 Transfer complete.

So it does successfully connect in binary mode to get the directory list.  

I've scoured the internet for information.  I've seen many issues with this caused by firewalls but unless someone can point out a packet filter I'm missing I don't think there are any.  I've also seen this related to active mode but passive does not help, and again that is generally a firewall issue.  

Any ideas?
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
Status:	Resolving address of san
Status:	Connecting to 192.168.2.150:21...
Status:	Connection established, waiting for welcome message...
Response:	220-
Response:	220 san FTP server ready.
Command:	USER ftpuser
Response:	331 Password required for ftpuser.
Command:	PASS *******
Response:	230 User ftpuser logged in.  Access restrictions apply.
Status:	Connected
Status:	Retrieving directory listing...
Command:	PWD
Response:	257 "/" is current directory.
Command:	TYPE I
Response:	200 Type set to I.
Command:	PASV
Response:	227 Entering Passive Mode (192,168,2,150,226,69)
Command:	LIST
Response:	150 Opening BINARY mode data connection for /bin/ls.
Response:	226 Transfer complete.
Status:	Directory listing successful
Status:	Resolving address of san
Status:	Connecting to 192.168.2.150:21...
Status:	Connection established, waiting for welcome message...
Response:	220-
Response:	220 san FTP server ready.
Command:	USER ftpuser
Response:	331 Password required for ftpuser.
Command:	PASS *******
Response:	230 User ftpuser logged in.  Access restrictions apply.
Status:	Connected
Status:	Starting download of /BrooksSSH.jpg
Command:	CWD /
Response:	250 CWD command successful.
Command:	TYPE I
Response:	200 Type set to I.
Command:	PASV
Response:	227 Entering Passive Mode (192,168,2,150,154,114)
Command:	RETR BrooksSSH.jpg
Response:	150 Opening BINARY mode data connection for BrooksSSH.jpg (146317 bytes).
Error:	Connection closed by server
Status:	Resolving address of san
Status:	Connecting to 192.168.2.150:21...
Status:	Connection established, waiting for welcome message...
Response:	220-
Response:	220 san FTP server ready.
Command:	USER ftpuser
Response:	331 Password required for ftpuser.
Command:	PASS *******
Response:	230 User ftpuser logged in.  Access restrictions apply.
Status:	Connected
Status:	Starting download of /BrooksSSH.jpg
Command:	CWD /
Response:	250 CWD command successful.
Command:	TYPE I
Response:	200 Type set to I.
Command:	PASV
Response:	227 Entering Passive Mode (192,168,2,150,129,21)
Command:	RETR BrooksSSH.jpg
Response:	150 Opening BINARY mode data connection for BrooksSSH.jpg (146317 bytes).
Error:	Connection closed by server
Status:	Resolving address of san
Status:	Connecting to 192.168.2.150:21...
Status:	Connection established, waiting for welcome message...
Response:	220-
Response:	220 san FTP server ready.
Command:	USER ftpuser
Response:	331 Password required for ftpuser.
Command:	PASS *******
Response:	230 User ftpuser logged in.  Access restrictions apply.
Status:	Connected
Status:	Starting download of /BrooksSSH.jpg
Command:	CWD /
Response:	250 CWD command successful.
Command:	TYPE I
Response:	200 Type set to I.
Command:	PASV
Response:	227 Entering Passive Mode (192,168,2,150,255,93)
Command:	RETR BrooksSSH.jpg
Response:	150 Opening BINARY mode data connection for BrooksSSH.jpg (146317 bytes).
Error:	Connection closed by server

Answer : OpenSolaris in.ftpd Binary Connection Fail

Okay, new question. How did you set up the chrooted directory? What is in it?
Random Solutions  
 
programming4us programming4us