all groups > iis ftp > july 2006 >
You're in the

iis ftp

group:

Problem with Home Directory for FTP site.


Problem with Home Directory for FTP site. Mike M.
7/24/2006 4:17:11 PM
iis ftp:
Windows 2000 (IIS 5.0) and Windows XP. I am setting up my default ftp site
on two machines. One running Win2k the other WinXP. We have an established
folder structure where our base ftp folder (ftpbase for discussion sake) has
sub-folders for each department. One of the folders happens to be named
"Default". This seems to cause a problem for the ftp service. When I ftp
as an anomymous user to the machines, I get put into the "Default" folder
instead of ftpbase. Is this by design or a leftover bit of code? If I
rename the "Default" folder I get put into ftpbase like I expect. I prefer
not to change the application software that performs the ftp.

TIA

Re: Problem with Home Directory for FTP site. Bernard Cheah [MVP]
7/25/2006 12:00:00 AM
if your user logon name is 'default' then it will auto redirect. this is a
feature not bug :)
How to set up an FTP site so that users log on to their folders
http://support.microsoft.com/?id=201771


--
Regards,
Bernard Cheah
http://www.iis.net/
http://www.iis-resources.com/
http://msmvps.com/blogs/bernard/


[quoted text, click to view]

Re: Problem with Home Directory for FTP site. Chris Crowe [MVP 1997 -> 2006]
7/25/2006 12:00:00 AM
The fact that you can not change this behaviour is a bug in my mind!

Just my 2 cents!

--


Chris Crowe [ IIS MVP - 1997 - 2006 ]
http://blog.crowe.co.nz


[quoted text, click to view]

Re: Problem with Home Directory for FTP site. Mike M.
7/25/2006 8:30:04 AM
Looking in Local Users and Groups (Manage My Computer) I do not have a user
named "Default". I checked that first thing. If there is one it must be
hidden somehow. Can there be a "hidden" Default user? This just sounds
like unexpected behaviour to me.

[quoted text, click to view]

Re: Problem with Home Directory for FTP site. Mike M.
7/25/2006 8:31:14 AM
I concur wholeheartedly. I do not have a user named "Default" that I can
find anyway. I think this is the virtual directory logic and I do not have
any defined nor a user "Default".

"Chris Crowe [MVP 1997 -> 2006]" <iismvp2005@iisfaq.homeip.net> wrote in
message news:O1MbSa8rGHA.652@TK2MSFTNGP04.phx.gbl...
[quoted text, click to view]

Re: Problem with Home Directory for FTP site. Bernard Cheah [MVP]
7/26/2006 12:00:00 AM
LoL. it was design in such a way. so how can it be a bug.......


--
Regards,
Bernard Cheah
http://www.iis.net/
http://www.iis-resources.com/
http://msmvps.com/blogs/bernard/


[quoted text, click to view]

Re: Problem with Home Directory for FTP site. Bernard Cheah [MVP]
7/26/2006 12:00:00 AM
Mmm.. interesting.
so you login as anonymous, you can redirect to a subfolder named 'default'
under d:\ftpbase\

what ftp client software you use? could be the app setting, etc
does it happen if you connect via ftp.exe ?

--
Regards,
Bernard Cheah
http://www.iis.net/
http://www.iis-resources.com/
http://msmvps.com/blogs/bernard/


[quoted text, click to view]

Re: Problem with Home Directory for FTP site. Mike M.
7/26/2006 2:21:26 PM
I am using Windows 2000 and Windows XP. The ftp service is set to a
specific base folder for example c:\inetpub\ftproot. On another machine
(Win2k or XP) I run cmd and then do "ftp machinename" and I tested using
Internet Explorer 6.0. It puts me in c:\inetpub\ftproot. If I put a folder
named "Default" in ftproot I end up there instead. If I rename that folder
I end back up in ftproot. There is no user with a name of "Default" on the
system.


[quoted text, click to view]

Re: Problem with Home Directory for FTP site. Bernard Cheah [MVP]
7/27/2006 12:00:00 AM
Wohooo! congrats! you just find out another hidden feature :)
I can repro. and the fact that this is auto redirect by IIS FTP.

Say - I have folder 'default' and 'ali'
if user name is ali -> i got auto redirect to 'ali' folder
all other users with no 'folder' with the same name as user will be
redirected to 'default'.

so this is bug ? mm... I will put it feature also.
From time to time. I have see request like:
'I know IIS will auto redirect user to the folder if the folder name is the
same with the user account' but what if I want two users to go to the same
folder? in the past, we can do it via virtual directory for one user then
mapped it to the same path'.
for now :) we just name that folder 'default' and both users will end up
there......

And for your issue - don't use the name default - change it to bydefault :)

--
Regards,
Bernard Cheah
http://www.iis.net/
http://www.iis-resources.com/
http://msmvps.com/blogs/bernard/


[quoted text, click to view]

Re: Problem with Home Directory for FTP site. Mike M.
7/27/2006 2:13:28 PM
I did end up changing the name of the folder. I wanted the name to reflect
the fact that it was for my default department so I just prefixed a couple
chars to "Default". As far as a useful "feature", I'm not so sure. When I
say make my base path here I pretty much want my base path there. Not
somewhere else. But that could just be me. :-)
Thanks for the confirmation.

[quoted text, click to view]

Re: Problem with Home Directory for FTP site. Bernard Cheah [MVP]
7/28/2006 12:00:00 AM
Lol! that will be case by case basic.
It could be a problem to you when you really need to named the folder as
'default'.
but to others it may helps....

--
Regards,
Bernard Cheah
http://www.iis.net/
http://www.iis-resources.com/
http://msmvps.com/blogs/bernard/


[quoted text, click to view]

AddThis Social Bookmark Button