Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have previously had vsftpd working on a FC4 box where if you put in the ftp address (ftp://example.com, ftp.example.com, or ftp://192.168.0.3 on local network), you would be given a login prompt. However, after moving to a different machine running Ubuntu 6.06, using said address gives an error:
Code:
This FTP server does not allow anonymous logins.
Doing so also creates a line in /var/log/vsftpd.log that says:
Code:
CONNECT: Client "192.168.0.2"
where 192.168.0.2 is the computer I try to access it from. The only way to connect through a web browser is to put in ftp://user@example.com (ftp clients work normally). Here is my vsftpd.conf:
Code:
listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
chown_uploads=YES
chown_username=<myuser>
nopriv_user=ftpadmin
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
secure_chroot_dir=/var/run/vsftpd
pam_service_name=vsftpd
# This option specifies the location of the RSA certificate to use for SSL
# encrypted connections.
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
# This option specifies the location of the RSA key to use for SSL
# encrypted connections.
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
pasv_enable=YES
All logins are permitted user logins, no anon. Any help would be appreciated.
Many browsers assume that you want to contact the FTP server via the "anonymous" user if you don't specify a username in the URL. If the FTP server doesn't allow anonymous users, then you don't get in.
I'm guessing that what happened in your case is that you went from an FTP server that did allow anonymous logins (FC4) to one that didn't (on your Ubuntu box).
So, in short, it's not vsftpd's fault that you need to add a user to your ftp:// address in the browser. Adding that user only prevents the default login attempt as "anonymous".
To solve this, you can either:
1. Allow anonymous logins for the FTP server or
2. Change the browser's default behaviour (if possible), i.e. to make it ask for a username instead of assuming "anonymous" as default. Check out your browser's settings for that.
Or just use a nice (free) FTP client instead of your browser.
Now that I think of it I had this problem with my first install of vsftpd on Gentoo. And I did fix the problem. After reviewing the vsftpd.conf on that server there are only 2 settings that may have fixed it.
Try them for yourself and let me know:
Quote:
pasv_promiscuous
Set to YES if you want to disable the PASV security check that ensures the data connection originates from the same IP address as the control connection. Only enable if you know what you are doing! The only legitimate use for this is in some form of secure tunnelling scheme, or perhaps to facilitate FXP support.
Default: NO
Quote:
async_abor_enable
When enabled, a special FTP command known as "async ABOR" will be enabled. Only ill advised FTP clients will use this feature. Additionally, this feature is awkward to handle, so it is disabled by default. Unfortunately, some FTP clients will hang when cancelling a transfer unless this feature is available, so you may wish to enable it.
Default: NO
I think it may have been the first one. But in any case I could post my vsftpd.conf if you want to compare it.
I'm guessing that what happened in your case is that you went from an FTP server that did allow anonymous logins (FC4) to one that didn't (on your Ubuntu box).
As I noted above there is a fix for this, because I have had the problem and solved it without allowing anon logins.
I tried enabling both settings but neither fixed it after restarting vsftpd. I would like to see your vsfptd.conf if you don't mind.
I also should note that I did have anonymous specifically disabled on the FC4 box. When you entered the ftp address in a browser, it would simply prompt you for a login.
So, I'm trying to install 2.0.3. Got the tarball, but when I run make, it gives me sysutil.c errors. The vsftpd faq says this is probably due to no ipv6 support. What do I need to install?
Try making this your vsftpd.conf (backing up the old one of course) and restarting vsftpd. If the problem still exists it is definitely not the configuration.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.