Groups | Blog | Home
all groups > iis ftp > august 2004 >

iis ftp : Multiple users FTP into same site


Daniel Goepfrich
8/24/2004 7:41:58 AM
Hello,

Hopefully this is an easy one.

I have two users that need to FTP into the same site. I have them able
to log into their own folders (d:\ftproot\user1 and d:\ftproot\user2)
but the site is located at d:\wwwroot\site1.

How can I give them access to the site from their respective folders?
I've seen "mapping" show up in a number of posts, but I'm not getting
how to do it. Thanks for any help.

Daniel

*** Sent via Developersdex http://www.developersdex.com ***
Daniel Goepfrich
8/24/2004 10:52:55 AM
One more thing...

Not only do multiple users need to have access to the same site, but a
user may need access to multiple sites. Thanks

Daniel

*** Sent via Developersdex http://www.developersdex.com ***
Daniel Goepfrich
8/24/2004 1:12:01 PM
OK...?

I have two virtual dirs set up under "Default FTP Site". They are named
"domain1" and "domain2" and they are pathed to "d:\wwwroot\domain1" and
"d:\wwwroot\domain2", respectively.

How does user1, when he logs into d:\ftproot\user1 get access to those
two folders? Thanks

Daniel

*** Sent via Developersdex http://www.developersdex.com ***
jeff.nospam NO[at]SPAM zina.com
8/24/2004 7:00:41 PM
On Tue, 24 Aug 2004 07:41:58 -0700, Daniel Goepfrich
[quoted text, click to view]

This is what virtual directories are for.

Daniel Goepfrich
8/24/2004 8:31:45 PM
Thanks, Jeff. I guess I do need help because I'm just not quite getting
it.

I'm running Windows 2000 Server, IIS 5.

When you say "virtual directories", are you referring to the ones set up
in IIS under "Default FTP Site" or something else?

My current setup is:

d:\wwwroot - contains subfolders with individual sites

d:\ftproot - contains subfolders named after the users

I need multiple users to log into the same site and a single user to log
into multiple sites.

Thanks

Daniel

*** Sent via Developersdex http://www.developersdex.com ***
jeff.nospam NO[at]SPAM zina.com
8/25/2004 3:14:49 AM
On Tue, 24 Aug 2004 13:12:01 -0700, Daniel Goepfrich
[quoted text, click to view]

The virtual directories have to be in the *user's* root, then you just
CD to the directory.

If you need help in setting it up, you'll need to tell us the version
of IIS/Windows...

jeff.nospam NO[at]SPAM zina.com
8/25/2004 4:01:18 PM
On Tue, 24 Aug 2004 20:31:45 -0700, Daniel Goepfrich
[quoted text, click to view]

In your FTP config, you need a Virtual Folder under the user's home
folder pointing to the web site they need access to. If multiple
sites, then multiple virtual folders. You may also make the user's
home virtual folder the web site folder.

In some clients, they can't "see" the virtual folder under their home
folder, but they only need to issue a CD to the virtual folder.

Take a look at:

How To Set Up an FTP Site So That Users Log Onto Their Folders:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;201771

Virtual Directories Not Visible on FTP Clients:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;142853

HOW TO: Limit FTP Access in Windows 2000:
http://support.microsoft.com/default.aspx?scid=kb;en-us;318712

alunj NO[at]SPAM online.microsoft.com (
8/25/2004 5:45:20 PM
[quoted text, click to view]

Unless there are any NTFS restrictions on those folders, the user will be
able to access those folders by simply changing directory using the CWD
command. If the user is using a graphical FTP client, however, he may not
be able to do that, because the virtual directories aren't listed.

Create a physical directory with the same name as the virtual directory,
and that will show up in the listing - but because the server will take the
virtual directory in preference over the physical one, when they try to
change directory to the listed directory, they'll be taken through to the
target of the virtual directory instead.

Alun.
~~~~
Daniel Goepfrich
8/26/2004 10:52:04 AM
Jeff and Alun,

Thanks so much!!! It works perfectly. I wasn't getting the nested
Virtual Directories. Once I understood what you were saying, it was a
piece of cake. Thanks again.

Daniel

*** Sent via Developersdex http://www.developersdex.com ***
AddThis Social Bookmark Button