LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Can't log in pure-ftpd server with IE, but can with command prompt. (https://www.linuxquestions.org/questions/linux-software-2/cant-log-in-pure-ftpd-server-with-ie-but-can-with-command-prompt-386815/)

Yonderknight 11-26-2005 06:59 PM

Can't log in pure-ftpd server with IE, but can with command prompt.
 
Hi,

I'm currently running a pure-ftpd server on my computer running Debian Linux. I did it according to an article titled: "Virtual Hosting With PureFTPd And MySQL (Incl. Quota And Bandwidth Management)", which I can't post because i don't have 5 posts yet =p. It described how to use a MySQL database for virtual accounts, and its running pure-ftpd as a standalone (for more information search the article name on google).

Well, I can log in with a command prompt FTP client just fine, and everything seems to work. When I try to login with clients such as FlashFXP, or Internet Explorer, I get the prompt to log into my account. After logging in, it waits for a long time "Getting contents of folder", and then I get an error message "An error occured opening that folder on the FTP server. Make sure you have permission to acccess that folder. Details: The operation timed out."

Is there any way to fix this?

Thanks in advance!

trickykid 11-26-2005 07:40 PM

Are you using an actual account of anonymous account. What exactly are you typing into the address bar in IE? Is FTP enabled in your IE settings?

If you have an actual account your using to connect, try something like this in the address bar:

http://username:password@ftp.server.com

ImpactDNI 11-26-2005 07:58 PM

I run a server using PureFTPD, theres a commandline option you need to have set, IE is a broken FTP client, but theres a commandline option to accept these "broken" clients...
don't have my setup in front of me, but look through the docs... its in there...

Yonderknight 11-27-2005 06:42 PM

Oh, ok. That's what I thought. I had trouble setting the command line option, though. I tried

/etc/init.d/pure-ftpd-mysql start -b -D

But that didn't seem to affect anything (I'm kind of new with linux). How would I enable these command line options?

Thanks!

ImpactDNI 11-27-2005 10:04 PM

Hmmm, the -b should do it.. what kind of errors are showing in your log?

T.Hsu 11-27-2005 10:25 PM

It may be caused by the different connection mode (passive vs active).

But I can't recall exactly which one using the passive mode by default.

Please refer to the following article:

http://slacksite.com/other/ftp.html

Yonderknight 11-27-2005 10:42 PM

Well, when I try to start up pure-ftpd with the -b option, all I see is this:

Code:

~# /etc/init.d/pure-ftpd-mysql start -b
Starting ftp server: Running: /usr/sbin/pure-ftpd-mysql -l mysql:/etc/pure-ftpd/db/mysql.conf -l pam -u 1000 -E -O clf:/var/log/pure-ftpd/transfer.log -B

Am I supposed to see the -b somewhere in there? Because the -B at the end is something different...

T.Hsu 11-27-2005 10:47 PM

pure-ftpd -b directly;

or modify the pure-ftpd-mysql script, add the -b switch.

Yonderknight 11-28-2005 12:19 AM

Umm, when I try to run it directly, it tells me
Unable to start a standalone server: Address already in use
And I'm having some trouble editing the script. Can anybody help?

Thanks!

T.Hsu 11-28-2005 12:41 AM

Server is already running? Try stop it first.

Code:

/etc/init.d/pure-ftpd-mysql stop
Then,

Code:

/usr/sbin/pure-ftpd-mysql -l mysql:/etc/pure-ftpd/db/mysql.conf -l pam -u 1000 -E -O clf:/var/log/pure-ftpd/transfer.log -B -b

Yonderknight 11-28-2005 12:54 AM

Ok, I tried this, but after I entered the command you gave me, it excecuted it without any problems (but it didn't return anything either). But, when I tried to log in, same thing happened =(.
Also, when I tried to run the command you gave me twice, without stopping the server, it didn't give me any errors like the one it gave me before. When I stopped the server, then tried to run "Pure-ftpd-mysql -b" by itself, it stil gave me the "Unable to start standalone server" message.

Any ideas?

T.Hsu 11-28-2005 01:12 AM

Do you check the passive actvie thing.

I'm now under windows XP and check the IE setting, found it using passive mode by default, and the ftp command use port mode automatically. It's the difference.

number9 11-28-2005 07:59 PM

Yeah, look into your Pure Config file, this sounds like a Passive/Active setting issue.

Yonderknight 11-28-2005 08:23 PM

Umm, when I use FlashFXP, and turn Passive mode off, it still doesn't work ='(.
I think it's because of the -b. I'm new to linux, and I think the problem is that I can't get the -b option to turn on.

Has anybody used pure-ftpd-mysql before and fixed this problem?

Again, thanks for all the help.

Yonderknight 11-30-2005 12:32 AM

Ok, I just realized, running any of the init.d scripts doesn't seem to be doing anything to pure-ftpd. Fore example, if I try typing

/etc/init.d/pure-ftpd-mysql stop

It says: "Stopping ftp server: pure-ftpd", but when I try to connect to it, I can still log into my ftp account! Like I said, I'm pretty new, but could this be because I'm running the server in standalone mode? How do I switch to the other mode (inetd I think)?


All times are GMT -5. The time now is 08:40 PM.