|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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? |
|
#3
|
|||
|
|||
|
I too am having this problem, what was the fix?
|
|
#4
|
|||
|
|||
|
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 : / |
|
#5
|
|||
|
|||
|
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? |
|
#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 |
|
#7
|
|||
|
|||
|
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! |
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > VSFTPD Error upon login |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|