I have a brand spankin’ new virtual server running Windows Server 2008 R2, IIS7.5. I’m trying to create a user with read/write FTP access to a particular directory, and — embarrasingly enough for a web dev, but it’s my first experience with Server '08 — I’m failing miserably. Here’s what I’ve done:
- Created an FTP site in IIS with physical path C:\inetpub\ftproot (All Unassigned, Port 21, Allow SSL, Basic Authentication, Read access for all users)
- Changed FTP User Isolation to “User name directory”
- Created a local user “ftpuser” with a password that never expires
- Set Home Directory for ftpuser to C:\inetpub\wwwroot heFTPsite
- Added a virtual directory “ftpuser” to the LocalUser folder with physical path C:\inetpub\wwwroot heFTPsite
- Granted Read and Write permissions to user “ftpuser”
- Granted NTFS Read and Write permissions to C:\inetpub\wwwroot heFTPsite for user “ftpuser”.
Then, I fired up Filezilla and logged in as ftpuser. The first thing I noticed is that I’m accessing the folder C:\inetpub\ftproot, and not C:\inetpub\wwwroot heFTPsite. So, my first question is, what did I do wrong there?
Second, although I can download files from this folder using Filezilla, I am unable to upload. This even occurs when I FTP in with the local admin account, so I think it’s something site-setting related, but damned if I can figure out what. When I try to upload a file, I get this error in my FTP log:
Status: Connecting to [IP:port]...
Status: Connection established, waiting for welcome message...
Response: 220 Microsoft FTP Service
Command: USER localadmin
Response: 331 Password required for localadmin.
Command: PASS ********
Response: 230 User logged in.
Command: OPTS UTF8 ON
Response: 200 OPTS UTF8 command successful - UTF8 encoding now ON.
Status: Connected
Status: Starting upload of C:\Documents and Settings\rorzabal\Desktop est.txt
Command: CWD /
Response: 250 CWD command successful.
Command: PWD
Response: 257 "/" is current directory.
Command: TYPE A
Response: 200 Type set to A.
Command: PASV
Response: 227 Entering Passive Mode ([IP]).
Command: STOR test.txt
Response: 550 Access is denied.
Error: Critical file transfer error
Advice? Thanks.