FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 26th, 2003, 05:31 AM
Battery Powered Battery Powered is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 161 Battery Powered User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 3 m 57 sec
Reputation Power: 6
VSFTPD Error upon login

Hey

We have a fresh install of VSFTPD on a brand new server.. running RedHat 9.0 straight out of the box..

We have had problems getting a user account to work with the ftp deamon properly.. and am wondering if anyone can shed any light on this..

When we access the ftp the user can login correctly.. password authtication is fine.. it just hangs when trying to read the directory.. log:

Looking up *.*.*.*
Trying hostname:21
Connected to hostname:21
220 (vsFTPd 1.1.3)
USER ftptest
331 Please specify the password.
PASS xxxx
230 Login successful. Have fun.
TYPE I
200 Switching to Binary mode.
PWD
257 "/home/ftp"
PASV
227 Entering Passive Mode (10,0,0,226,211,177)

and it just does nothing more.. and eventually times out.
Ive tried using PORT instead of passive mode but still no joy

We have created the following users with groups:

ftptest:ftp
ftptest2:ftptest2
ftptest3:root

(username:group)

and have still had no joy in being able to access the folder after authentication, its like the folder access permissions are set too high but that isnt the case.. we actually chmod'd the tree 0777 just for testing purposes, but it didnt help anything

Has anyone experianced this.. or have any idea what we can try?

Thanks for your time,
All the best

-BP-

Last edited by Battery Powered : August 26th, 2003 at 05:34 AM.

Reply With Quote
  #2  
Old August 26th, 2003, 07:31 PM
Battery Powered Battery Powered is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 161 Battery Powered User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 3 m 57 sec
Reputation Power: 6
I can see the problem is with:

227 Entering Passive Mode (10,0,0,226,211,177)

as this is a local address (10.0.0.226) - if i connect locally all is fine, just remotly i get the errors as it doesnt seem to ident the remote host.. just this local address - any ideas anyone?

Reply With Quote
  #3  
Old October 6th, 2003, 12:43 PM
deviros deviros is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 1 deviros User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I too am having this problem, what was the fix?

Reply With Quote
  #4  
Old October 9th, 2003, 06:52 AM
Battery Powered Battery Powered is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 161 Battery Powered User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 3 m 57 sec
Reputation Power: 6
Unfortunatly I found no solution : (
Ive been using ssh to u/l to the server all this time and closed the ftp service altogether - thinking it wasnt such a bad idea having fewer services open on the box but then again - having ftp would make things easier, im just surviving without lol

if you hear anything or find a solution post and i'll do the same - i sorta gave up tho : /

Reply With Quote
  #5  
Old March 3rd, 2004, 01:24 AM
Uldor Uldor is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 1 Uldor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 28 sec
Reputation Power: 0
It's happening to me 2.

I have vsftpd (xinetd standing) workin' on a SuSE 8.2 and it's doin' fine through my lan. But... people from inet are havin' troubles. Not everybody, just those ones needed of passive transfer (routers).

I've redirect pasv ports on my router too, but the problem's still there.

The "funny" thing is some ftp clients can, but not the most:

Fail:
Filezilla
WS_ftp
leechFTP

Success:
CofeeCup
FTPnavigator
SmartFTP

I thougt it was something with SuSEfirewall2, but once I realized some clients work, I guess it's not my firewall fault.

Any idea about it?

Reply With Quote
  #6  
Old April 3rd, 2005, 02:12 PM
rozeel rozeel is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 64 rozeel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 m 51 sec
Reputation Power: 6
Well reading about these things, gives me an idea what i have done the last couple of days.

I also was struggling with vsftpd, iptables and different ftp-client.
To get vsftpd working in ftp pasv mode on a red hat 9 box.

Well I am able to connect to the vsftp from an windowsxp straight ftp client (dos mode).. it works like an charm.

But with filezilla after some seconds of delay ( i guess an ident problem and a lack of dns support on the linux machine) it sometimes connects and (mostly) NOT.

Does somebody has an idea where to look ?

TIA

Reply With Quote
  #7  
Old November 24th, 2005, 01:40 AM
0001001 0001001 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2005
Posts: 1 0001001 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 58 sec
Reputation Power: 0
o people here's the solution:

1. go to /etc and create a file called getmyip.sh
and write the following code in getmyip.sh:

Code:
#!/bin/bash
sed -e '64,$D' /etc/vsftpd.conf > /etc/tempfile
mv /etc/tempfile /etc/vsftpd.conf
echo pasv_address=`dig youradress.dyndns.org | sed -n '/ANSWER SECTION/{n;p;}' | awk '{print $NF}'` >> /etc/vsftpd.conf



2. Open your /etc/vsftpd.conf . Now a very important thing: go to the last line of your vsftpd.conf and create a new last line called
CODE
pasv_address=

Remember the number of the last line, in my case the last line is 64.

3. Change the line number in your /etc/getmyip.sh. Just enter your last line number instead of mine (64).

4. Make a cronjob. Go to /etc and open your crontab.
create a new line with the following code:

Code:
*/15 * * * *   root /etc/getmyip.sh


that means the script will be executed every 15 minutes

Hope someone can use it!

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > VSFTPD Error upon login


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT