LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 01-13-2010, 06:35 AM   #1
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 387

Rep: Reputation: 61
vsftpd: FTP clients work, ftp://xxxx in mozilla does not. Anonymous user prob?


I have an FTP server which is linked to a user account in a chroot jail and I have disabled anonymous access (anonymous_enable=NO). I can FTP into this server from Windows command line FTP client and every other FTP client I have used with no problems.

However, I have been trying to access it via a web browser (firefox) using ftp://<server name>. This connects and prompts me for my login details, which I enter as I should. But then I get a 425 connection error.

In my /var/log/secure log, I see the entry: -

Jan 13 10:12:20 joshua11 vsftpd[13952]: pam_unix(vsftpd:auth): check pass; user unknown
Jan 13 10:12:20 joshua11 vsftpd[13952]: pam_unix(vsftpd:auth): authentication failure; logname= uid=0 euid=0 tty=ftp ruser=anonymous rhost=<MY IP ADDRESS>
Jan 13 10:12:20 joshua11 vsftpd[13952]: pam_succeed_if(vsftpd:auth): error retrieving information about user anonymous

Why is Mozilla Firefox trying to connect as an anonymous user when it has already prompted me for my login details?


Any ideas? Thanks.
 
Old 01-13-2010, 07:02 AM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,189

Rep: Reputation: 49
That's a bit odd.
How about trying ftp://userass@IP
 
Old 01-13-2010, 07:28 AM   #3
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 387

Original Poster
Rep: Reputation: 61
Quote:
Originally Posted by w3bd3vil View Post
That's a bit odd.
How about trying ftp://userass@IP
Using:-

ftp://<username>:<password>@<IP address>

..I get nothing, just a 425 connection error. I don't know if this is something to do with the FTP server setup (unlikely, since it works with "proper" FTP clients) or something to do with the browser. I suppose it's unlikely to be trying to do anything over port 80, right? That port is closed anyway.
 
Old 01-13-2010, 08:12 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
I guess it's a passive mode problem. Add
Code:
pasv_promiscuous=YES
in vsftpd.conf and see if it helps

Regards
 
Old 01-13-2010, 08:47 AM   #5
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 387

Original Poster
Rep: Reputation: 61
Nope, no joy there. Thanks though. Could it be a passive mode problem? How does the ftp engine of Firefox work? I guess it's pretty basic, though...
 
Old 01-13-2010, 09:21 AM   #6
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
I guess it's passive mode because firefox does not support active mode (see here). Besides 425 is a connection error, not an authentication error.
The anonymous user that is logged, is because if you don't supply a username and/or password in address bar, firefox tries first anonymous user and then prompts for real user credentials.
If your server is behind a firewall, disable it, or open some ports for passive mode and configure vsftpd to use the same ports
 
1 members found this post helpful.
Old 01-13-2010, 09:36 AM   #7
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 387

Original Poster
Rep: Reputation: 61
Quote:
Originally Posted by bathory View Post
I guess it's passive mode because firefox does not support active mode (see here). Besides 425 is a connection error, not an authentication error.
The anonymous user that is logged, is because if you don't supply a username and/or password in address bar, firefox tries first anonymous user and then prompts for real user credentials.
If your server is behind a firewall, disable it, or open some ports for passive mode and configure vsftpd to use the same ports
Okay, this works with the ftp://<user>:<pass>@<ip address> directive, but not indirectly via a dialog box. Probably the best I can hope for

Thank you.
 
Old 01-13-2010, 09:50 AM   #8
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
It should work in both ways.
If you supply a URL like ftp://ftp.domain.com, firefox first tries anonymous ftp and if it fails it should present the dialog box to enter credentials. Are you sure it's not a firefox cache problem?
 
Old 01-13-2010, 10:31 AM   #9
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 387

Original Poster
Rep: Reputation: 61
Quote:
Originally Posted by bathory View Post
It should work in both ways.
If you supply a URL like ftp://ftp.domain.com, firefox first tries anonymous ftp and if it fails it should present the dialog box to enter credentials. Are you sure it's not a firefox cache problem?
Ooops....sorry, yes it works both ways. Cache problem as you said. Double-thanks
 
  


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
ftp user anonymous problem kishore.ieg Linux - Server 0 07-29-2009 03:11 AM
Anonymous FTP for all, user FTP logins only for specific IP ranges Sjorrit Slackware 15 04-24-2009 03:32 PM
Access authenticating FTP sites using FTP Clients on XP clients via SQUID munirg2003 Linux - Networking 2 06-12-2007 11:58 PM
vsftpd not running..i can connect ftp via anonymous..not able put/get files Saravana Pandi Linux - Networking 1 06-06-2006 08:17 AM
vsftpd in ftp clients - a no go ?? ycamera2mank Linux - Software 3 09-04-2005 05:48 PM


All times are GMT -5. The time now is 06:54 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration