I have setup an ftp server with VSFTP over Centos 4.4. Everything works fine except when I login though IE it doen' ask for the username password but by default it goes to Pub folder. (/var/ftp/pub). I need to access this through view--> open ftp folder in separate window -> file --> login.
In short the server doesn't prompt for username when I type the ftp address on the address bar. Instead it takes you to public folder.
Is there any way I could get the login prompt when typing the ftp address? Any help would be really appreciated.
Thanks
Rajeev
Please find below the vsftpd.conf
#anonymous_enable=YES
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
#local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
#anon_upload_enable=NO
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format
xferlog_std_format=YES
#
#local_root=/Data/$HOME
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that turning on ascii_download_enable enables malicious remote parties
# to consume your I/O resources, by issuing the command "SIZE /big/file" in
# ASCII mode.
# These ASCII options are split into upload and download because you may wish
# to enable ASCII uploads (to prevent uploaded scripts etc. from breaking),
# without the DoS risk of SIZE and ASCII downloads. ASCII mangling should be
# on the client anyway..
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
ftpd_banner=Welcome to MY FTP server.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd.banned_emails
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
chroot_list_enable=YES
# (default follows)
chroot_list_file=/etc/vsftpd.chroot_list
#
#chroot_local_user=YES
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
pam_service_name=vsftpd
userlist_enable=YES
#enable for standalone mode
listen=YES
tcp_wrappers=YES
Can someone explain what happened to my post? The line I wanted to show came out very wrong.
I typed username followed by the at sign followed by the word address and then a fullstop and finally the term tld
What I am seeing in my post has something about gmane substituted in it.
Mel wrote:
Rajeev R Veedu wrote:
Is there any way I could get the login prompt when typing the ftp address? Any help would be really appreciated.
What happens if you type username@ftp.address.tld in the browser address window?
Mel spake the following on 2/27/2007 12:40 AM:
Can someone explain what happened to my post? The line I wanted to show came out very wrong.
I typed username followed by the at sign followed by the word address and then a fullstop and finally the term tld
What I am seeing in my post has something about gmane substituted in it.
Mel wrote:
Rajeev R Veedu wrote:
Is there any way I could get the login prompt when typing the ftp address? Any help would be really appreciated.
What happens if you type username@ftp.address.tld in the browser address window?
When you post through Gmane, it sanitizes anything resembling an e-mail address for privacy and to prevent harvesting.
On 27/02/07, Rajeev R Veedu rajeev@cracknell.com wrote:
I have setup an ftp server with VSFTP over Centos 4.4. Everything works fine except when I login though IE it doen' ask for the username password but by default it goes to Pub folder. (/var/ftp/pub). I need to access this through viewà open ftp folder in separate window -> file à login.
#anonymous_enable=YES
It sounds like it's because IE is automatically logging in using the anonymous user. Uncomment the '#anonymous_enable=YES' line and switch 'YES' to 'NO', 'service restart vsftpd' and try again.
Will.
Will McDonald wrote:
On 27/02/07, Rajeev R Veedu rajeev@cracknell.com wrote:
I have setup an ftp server with VSFTP over Centos 4.4. Everything works fine except when I login though IE it doen' ask for the username password but by default it goes to Pub folder. (/var/ftp/pub). I need to access this through viewà open ftp folder in separate window -> file à login.
#anonymous_enable=YES
It sounds like it's because IE is automatically logging in using the anonymous user. Uncomment the '#anonymous_enable=YES' line and switch 'YES' to 'NO', 'service restart vsftpd' and try again.
Yes, I also think it. But I don't understand where is the problem. If you configure de FTP server as an anonymous server ¿why the automatic login from browser is not right for you? The described behaviour of the browser (IE in this case) is perfectly "normal" according to FTP server config.
On 27/02/07, Jordi Espasa Clofent jordi.listas@yahoo.es wrote:
Will McDonald wrote:
On 27/02/07, Rajeev R Veedu rajeev@cracknell.com wrote:
I have setup an ftp server with VSFTP over Centos 4.4. Everything works fine except when I login though IE it doen' ask for the username password but by default it goes to Pub folder. (/var/ftp/pub). I need to access this through viewà open ftp folder in separate window -> file à login.
#anonymous_enable=YES
It sounds like it's because IE is automatically logging in using the anonymous user. Uncomment the '#anonymous_enable=YES' line and switch 'YES' to 'NO', 'service restart vsftpd' and try again.
Yes, I also think it. But I don't understand where is the problem. If you configure de FTP server as an anonymous server ¿why the automatic login from browser is not right for you? The described behaviour of the browser (IE in this case) is perfectly "normal" according to FTP server config.
There's nothing inherintly wrong with the way the FTP server's behaving at the moment (well, this *could* be open to discussion), it seems the default is anonymous enabled.
However, that's not how Rajeev wanted it to behave, why that's not right for him is down to his individual environment and users...
"In short the server doesn't prompt for username when I type the ftp address on the address bar. Instead it takes you to public folder. Is there any way I could get the login prompt when typing the ftp address? Any help would be really appreciated."
Personally, I disable anoymous access to FTP as a matter of course, and wherever possible use SCP/SFTP with RSSH to chroot if I can.
Will.
Mel and Will,
I had tried both the option. It doesn't work either.
But when we disable the anonymous access how come IE could login to pub folder (which is under /var/ftp/pub).
Thanks
Rajeev
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf of Will McDonald Sent: Tuesday, February 27, 2007 1:45 PM To: CentOS mailing list Subject: Re: [CentOS] Problem with VSFTP
On 27/02/07, Jordi Espasa Clofent jordi.listas@yahoo.es wrote:
Will McDonald wrote:
On 27/02/07, Rajeev R Veedu rajeev@cracknell.com wrote:
I have setup an ftp server with VSFTP over Centos 4.4. Everything works fine except when I login though IE it doen' ask for the username password but by default it goes to Pub folder. (/var/ftp/pub). I need to access this through viewà open ftp folder in separate window -> file à login.
#anonymous_enable=YES
It sounds like it's because IE is automatically logging in using the anonymous user. Uncomment the '#anonymous_enable=YES' line and switch 'YES' to 'NO', 'service restart vsftpd' and try again.
Yes, I also think it. But I don't understand where is the problem. If you configure de FTP server as an anonymous server ¿why the automatic login from browser is not right for you? The described behaviour of the browser (IE in this case) is perfectly "normal" according to FTP server config.
There's nothing inherintly wrong with the way the FTP server's behaving at the moment (well, this *could* be open to discussion), it seems the default is anonymous enabled.
However, that's not how Rajeev wanted it to behave, why that's not right for him is down to his individual environment and users...
"In short the server doesn't prompt for username when I type the ftp address on the address bar. Instead it takes you to public folder. Is there any way I could get the login prompt when typing the ftp address? Any help would be really appreciated."
Personally, I disable anoymous access to FTP as a matter of course, and wherever possible use SCP/SFTP with RSSH to chroot if I can.
Will. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On 27/02/07, Rajeev R Veedu rajeev@cracknell.com wrote:
Mel and Will,
I had tried both the option. It doesn't work either.
But when we disable the anonymous access how come IE could login to pub folder (which is under /var/ftp/pub).
Did you restart vsftpd as root after changing anonymous_enable=NO ? I'm guessing you didn't.
Ignore IE for the time being, get VSFTPd working as you want it to while testing with command line FTP on the system itself, then test remotely. i.e. disable anonymous access, restart vsftpd, ftp localhost on the system and try to log in as the anonymous user. That should fail, then start testing from remote systems.
Will.
On Tue, 2007-02-27 at 15:03 +0400, Rajeev R Veedu wrote:
Mel and Will,
I had tried both the option. It doesn't work either.
But when we disable the anonymous access how come IE could login to pub folder (which is under /var/ftp/pub).
Thanks
Rajeev
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf of Will McDonald Sent: Tuesday, February 27, 2007 1:45 PM To: CentOS mailing list Subject: Re: [CentOS] Problem with VSFTP
On 27/02/07, Jordi Espasa Clofent jordi.listas@yahoo.es wrote:
Will McDonald wrote:
On 27/02/07, Rajeev R Veedu rajeev@cracknell.com wrote:
I have setup an ftp server with VSFTP over Centos 4.4. Everything works fine except when I login though IE it doen' ask for the username password but by default it goes to Pub folder. (/var/ftp/pub). I need to access this through viewà open ftp folder in separate window -> file à login.
#anonymous_enable=YES
It sounds like it's because IE is automatically logging in using the anonymous user. Uncomment the '#anonymous_enable=YES' line and switch 'YES' to 'NO', 'service restart vsftpd' and try again.
Yes, I also think it. But I don't understand where is the problem. If you configure de FTP server as an anonymous server ¿why the automatic login from browser is not right for you? The described behaviour of the browser (IE in this case) is perfectly "normal" according to FTP server config.
There's nothing inherintly wrong with the way the FTP server's behaving at the moment (well, this *could* be open to discussion), it seems the default is anonymous enabled.
However, that's not how Rajeev wanted it to behave, why that's not right for him is down to his individual environment and users...
"In short the server doesn't prompt for username when I type the ftp address on the address bar. Instead it takes you to public folder. Is there any way I could get the login prompt when typing the ftp address? Any help would be really appreciated."
Personally, I disable anoymous access to FTP as a matter of course, and wherever possible use SCP/SFTP with RSSH to chroot if I can.
Will. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
First, please don't top post.
Second, the behavior as you described it, is not ftp server's fault but rather browser's "feature":
"Note that Internet Explorer automatically logs on anonymously to all FTP servers that permit anonymous logon." (from Microsoft TechNet - http://www.microsoft.com/technet/archive/IIS3/iischp9.mspx?mfr=true)
So, if you need to ftp the server from within Internet Explorer (there are plenty of other better clients out there) you will have to disable anonymous account on your server or, as someone else already mentioned use ftp://user@yourftpserver instead, and you will get the login prompt.
HTH,
Calin
================================================= The trouble is, there is an endless supply of White Men, but there has always been a limited number of Human Beings. -- Little Big Man