LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-28-2005, 07:39 AM   #1
yspl
LQ Newbie
 
Registered: Aug 2005
Location: chennai
Posts: 3

Rep: Reputation: 0
Post Unable to send or retrive file using vsftpd


Hai
I am working in c networking in MS-DOS to connect with VSFTPD[COLOR=crimson] i am able to establish connection with it but i am unable to send file or retrive a file.

when i tried with windows cmd prompt telnet application to connect with vsfptd i get the same problem
i connected with ftp server as TELNET HOSTNAME 21
& got error as follows

220 (vsFTPd 1.1.3)
USER postgres
331 Please specify the password.
PASS postgres
230 Login successful. Have fun.
PORT 192,168,2,4,44,100
200 PORT command successful. Consider using PASV.
RETR jjj.txt
150 Opening BINARY mode data connection for jjj.txt (63 bytes).
426 Failure writing network stream.
PORT 192,168,2,4,44,101
200 PORT command successful. Consider using PASV.
STOR socket.txt
150 Ok to send data.
226 File receive OK.
421 Timeout.

if anyone knows solution please help me
 
Old 09-28-2005, 10:43 AM   #2
bunnyrage
Member
 
Registered: Sep 2005
Distribution: Fedora Core 2
Posts: 34

Rep: Reputation: 15
first off, vsftp, stand for very secure ftp

command line access me be problematic, because it is designed for an ftp client, (a GUI)

ive had goos results with vsftp in a normal windows env using wsftp client.


if you are lokking for flexibilty to use command kine access (especialy using telnet)
(telnet access has been known to be used with malicious intent)
(so a program aimed at security, would most often limit, if not block access from port 23)
(were refering to very secure ftp)

try installing an older version of ftp on linux and set your /etc/hosts.allow and /etc/hosts.deny to accept ftp

also make sure the folders you are accessing are set to 755 permissions, if 755 dosnt work try 777

however you will be sacrificing security, but if security is not a concern, install an earlier version of plain old "ftp" on linux
 
Old 09-28-2005, 10:44 AM   #3
bunnyrage
Member
 
Registered: Sep 2005
Distribution: Fedora Core 2
Posts: 34

Rep: Reputation: 15
sorry for typos
 
Old 09-29-2005, 02:21 AM   #4
yspl
LQ Newbie
 
Registered: Aug 2005
Location: chennai
Posts: 3

Original Poster
Rep: Reputation: 0
i tried with older older version stil i get same problem

Hai thanks for your response

I tried with older version of ftp but still i face same problem message it got is as follows in telnet screen

220 yogasoft.co.in FTP server (Version wu-2.4.2-VR17(1) Mon Apr 19 09:21:53 EDT 1999) ready.
USER postgres
331 Password required for postgres.
PASS postgres
230-Please read the file README
230- it was last modified on Fri Aug 19 18:00:31 2005 - 41 days ago
230 User postgres logged in.
pwd
257 "/usr/local/pgsql" is current directory.
port 192,168,2,4,44,102
200 PORT command successful.
retr sample.txt
pasv
227 Entering Passive Mode (192,168,2,12,8,114)
retr sample.txt
425 Can't open data connection.
port 192,168,2,4,45,102
200 PORT command successful.
stor socket.txt

But when i tried with a gui ftp client(CORE FTP) it is working properly and commands issued by it as follows

welcome to Core FTP, release ver 1.3c, build 1423.01 (U) -- © 2003-2005
WinSock 2.0
Mem -- 259,888 KB, Virt -- 2,097,024 KB
Started on Thursday September 29, 2005 at 12:22:PM
Connect socket #496 to 192.168.2.12, port 21...
220 yogasoft.co.in FTP server (Version wu-2.4.2-VR17(1) Mon Apr 19 09:21:53 EDT 1999) ready.
USER postgres
331 Password required for postgres.
PASS **********
230-Please read the file README
230- it was last modified on Fri Aug 19 18:00:31 2005 - 41 days ago
230 User postgres logged in.
SYST
215 UNIX Type: L8
Keep alive off...
PWD
257 "/usr/local/pgsql" is current directory.
PORT 192,168,2,4,114,191
200 PORT command successful.
LIST
150 Opening ASCII mode data connection for /bin/ls.
226 Transfer complete.
CWD /usr/local/pgsql/ppp
550 /usr/local/pgsql/ppp: Not a directory.
CWD /usr/local/pgsql
250 CWD command successful.
Transferred 10,693 bytes in 0.172 seconds
DELE socket.txt
250 DELE command successful.
PORT 192,168,2,4,114,192
200 PORT command successful.
LIST
150 Opening ASCII mode data connection for /bin/ls.
226 Transfer complete.
CWD /usr/local/pgsql/ppp
550 /usr/local/pgsql/ppp: Not a directory.
CWD /usr/local/pgsql
250 CWD command successful.
Transferred 10,626 bytes in 0.172 seconds
TYPE I
200 Type set to I.
PORT 192,168,2,4,114,193
200 PORT command successful.
RETR sample.txt
150 Opening BINARY mode data connection for sample.txt (6 bytes).
226 Transfer complete.
sample.txt - 6 bytes transferred
MDTM sample.txt
213 19990104205617
Transfer time: 00:00:01
 
Old 09-29-2005, 10:10 AM   #5
bunnyrage
Member
 
Registered: Sep 2005
Distribution: Fedora Core 2
Posts: 34

Rep: Reputation: 15
so the client is working??

did youget the files to transfer??

did you change the permissions on the folders you are accessing??

i can see from your output that things seem to work properly

are you still having trouble??
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VSFTPD:How to have vsftpd ask for anon user to "send email for password"? dmurray8888 Linux - Networking 1 08-31-2008 06:04 PM
unable to send packets cranium2004 Linux - Networking 2 02-05-2005 10:28 PM
Unable to send Mail ! phil81 Linux - Networking 5 06-12-2004 10:37 AM
VSFTPD Debian VSFTPD "unrecognised variable in config file" DCT Linux - Software 0 05-29-2004 11:59 PM
How to Retrive /etc(sys file) !! hitesh_linux Linux - General 4 02-08-2003 07:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration