all groups > iis ftp > september 2004 >
You're in the

iis ftp

group:

Basics - FTP to web server setup


Basics - FTP to web server setup deko
9/5/2004 4:41:49 AM
iis ftp:
I'm coming from an Apache background, so excuse my ignorance if this is a
simple question:

I'm trying to set up a sandbox server - WS03/IIS6 to which I will FTP my
ASP.NET code from VS.NET or Dreamweaver.. so, on the server, I created an
FTP site and a Web site called "boyjojo" and a directory in
c:\Inetpub\wwwroot\ called "boyjojo" - for the web site. I also created a
user named "boyjojo" and put it in the Administrators group. I made the
home directory for the FTP site: c:\Inetpub\wwwroot\boyjojo

Okay, so now the stuff I FTP from Dreamweaver should go in
c:\Inetpub\wwwroot\boyjojo and be publicly accessible via http - is this
correct?

The error I'm getting in Dreamweaver is: "...cannot open the remote folder
c:/Inetpub/wwwroot/boyjojo/ ... there could be a permission problem."

I tried changing permissions on Inetpub but the permission don't seem to
stick...

Am I on the right track here, or am I missing something?

Re: Basics - FTP to web server setup deko
9/5/2004 5:48:45 AM
Perhaps it will help if the problem is described in terms of just FTPing
files (as boyjojo), and trying to get those files to go into a web site's
home directory (in this case, the boyjojo's website's home directory).

So I created an FTP Site (boyjojo) in User Isolation mode and made the home
directory: C:\Inetpub\wwwroot\boyjojo. The Web Site (boyjojo) has the same
home directory - this is by design so when I FTP a new web page (from
Dreamweaver or whatever) it's immediately available over the internet (or
intranet).

Here's what happens when I try to ftp to the boyjojo FTP site:

C:\>ftp 10.0.0.31
Connected to 10.0.0.31.
220 Microsoft FTP Service
User (10.0.0.31:(none)): boyjojo
331 Password required for boyjojo.
Password:
530 User regular cannot log in, home directory inaccessible.
Login failed.
ftp>

Is there anyway to ftp files to a website's home directory? I mean, there
must be a way - what do hosting providers do when they host multiple
customers on IIS? They have to allow FTP access somehow... ??

Re: Basics - FTP to web server setup Me
9/5/2004 11:28:16 AM
If youa re using IIS 6 you can use Isolation Mode but the Directory
structure has to follow a certain naming convention. You can also create a
Virtual Directory under FTP name it the ID of the user and map it to the Web
Home directory. Enable Read and Write and give the local user or Domain user
the proper NTFS permissions. Anonumous can't log in either. I'm presently
doing this successfully at my company.

[quoted text, click to view]

Re: Basics - FTP to web server setup deko
9/5/2004 11:42:13 PM
[quoted text, click to view]

I created the following directory structure:

c:\accounts\account1\wwwroot
c:\accounts\account2\wwwroot
c:\accounts\account3\wwwroot
....

[quoted text, click to view]

I deleted the FTP site I had created perviously and created virtual
directories under the default FTP site (and disabled anonymous access).
Then I created virtual directories with alias of account1, account2,
account3 respectively and pointed each one to it's corresponding wwwroot
directory.

[quoted text, click to view]

I deleted the Web sites I had created previoulsy and made a new web sites
with home directories of:

c:\accounts\account1\wwwroot
c:\accounts\account2\wwwroot
c:\accounts\account3\wwwroot

Seems to be working - but now I FTP to the IP address of the server (not the
FTP site) and log in with "accountX" for a username and am taken directly to
that user's wwwroot directory. I assume this is correct...

[quoted text, click to view]

Here's where I'm having trouble - regardless of what user I FTP in as, if I
issue the "cd /" and "dir" command, I see:

account1
account2
account3

and can cd into any of these directories. Is this a problem with how I've
configured things, or just a NTFS permission problem?

[quoted text, click to view]

What about FTP passwords? Should I use SSL encription? I assume most Hosts
do this... (?) How to make secure?

Re: Basics - FTP to web server setup Bernard
9/6/2004 1:53:57 PM
Try -
Err Msg: 530 User <Username> Cannot Log In, Home Directory Inaccessible.
Login Failed.
http://support.microsoft.com/?id=221934

check the user permissions, if stuck again try filemon (sysinternals.com) to
trace.

as regarding your last question. IIS FTP doesn't support SSL implementation,
you need to secure the connection or get third party solution. refer
Information About the IIS File Transmission Protocol (FTP) Service
http://support.microsoft.com/?id=283679


--
Regards,
Bernard Cheah
http://www.tryiis.com/
http://support.microsoft.com/
http://www.msmvps.com/bernard/



[quoted text, click to view]

AddThis Social Bookmark Button